Qt: Update elevator for non-writable paths

i.e. support installation in Program Files.
This commit is contained in:
Stenzek
2024-02-04 17:15:46 +10:00
parent 058fe13c52
commit 3bd9cbdfec
3 changed files with 102 additions and 76 deletions

View File

@ -96,6 +96,6 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
progress.DisplayFormattedInformation("Launching '%s'...",
StringUtil::WideStringToUTF8String(program_to_launch).c_str());
ShellExecuteW(nullptr, L"open", program_to_launch.c_str(), nullptr, nullptr, SW_SHOWNORMAL);
ShellExecuteW(nullptr, L"open", program_to_launch.c_str(), L"-updatecleanup", nullptr, SW_SHOWNORMAL);
return 0;
}