Qt: Update elevator for non-writable paths

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

No files matched your search

+1 -1
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;
}