comparison ui/installwrapper.cpp @ 1003:db7e7156c824

(issue66) Only depend on is_system_install on windows to decide privilege raise
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 02 Sep 2014 10:50:04 +0200
parents b8ae69bcc540
children 317ee9dc4684
comparison
equal deleted inserted replaced
1002:e9ff3107b885 1003:db7e7156c824
94 QString parameters = "\"list=" + mCertListFile + 94 QString parameters = "\"list=" + mCertListFile +
95 "\" \"choices=" + choicesFile.fileName() + "\""; 95 "\" \"choices=" + choicesFile.fileName() + "\"";
96 96
97 shExecInfo.cbSize = sizeof(SHELLEXECUTEINFOW); 97 shExecInfo.cbSize = sizeof(SHELLEXECUTEINFOW);
98 shExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; 98 shExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
99 if (!is_admin() || !is_system_install()) { 99 if (!is_system_install()) {
100 shExecInfo.lpVerb = L"open"; 100 shExecInfo.lpVerb = L"open";
101 } else { 101 } else {
102 shExecInfo.lpVerb = L"runas"; 102 shExecInfo.lpVerb = L"runas";
103 } 103 }
104 shExecInfo.lpFile = reinterpret_cast<LPCWSTR> (cinstFileName.utf16()); 104 shExecInfo.lpFile = reinterpret_cast<LPCWSTR> (cinstFileName.utf16());

http://wald.intevation.org/projects/trustbridge/