[win] online-installer: fix msi update

This commit is contained in:
SimplestStudio
2025-04-25 18:37:32 +03:00
parent c343ef2ba7
commit 6e2812d458

View File

@ -411,8 +411,8 @@ void MainWindow::startUpdate()
return;
}
m_bar->pulse(true);
wstring args = L"/c \"" + tmp_path;
args += (m_package == L"msi") ? L" /qn /norestart\"" : L" /UPDATE /VERYSILENT /NOLAUNCH\"";
wstring args = L"/c call \"" + tmp_path;
args += (m_package == L"msi") ? L"\" /qn /norestart" : L"\" /UPDATE /VERYSILENT /NOLAUNCH";
DWORD status = NS_File::runProcess(L"cmd", args, true);
if (status != 0) {
m_bar->pulse(false);