From 250faf027f381758a03eeb560792f6d2704a8eb9 Mon Sep 17 00:00:00 2001 From: allexzander Date: Mon, 1 Aug 2022 21:53:27 +0300 Subject: [PATCH] Do not reboot PC when running an MSI via autoupdate. Signed-off-by: allexzander --- admin/win/msi/Nextcloud.wxs | 2 +- src/gui/updater/ocupdater.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/win/msi/Nextcloud.wxs b/admin/win/msi/Nextcloud.wxs index d111245174d89..8e694b3f69a51 100644 --- a/admin/win/msi/Nextcloud.wxs +++ b/admin/win/msi/Nextcloud.wxs @@ -81,7 +81,7 @@ (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") - (SCHEDULE_REBOOT=1) OR (NOT (UILevel=2) AND NOT (DO_NOT_REBOOT_IN_SILENT=1)) + (SCHEDULE_REBOOT=1) OR NOT (UILevel=2) diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index ec0f65547ce9f..102c7fcbbeddd 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -222,7 +222,7 @@ void OCUpdater::slotStartInstaller() }; QString msiLogFile = cfg.configPath() + "msi.log"; - QString command = QString("&{msiexec /promptrestart /passive /i '%1' DO_NOT_REBOOT_IN_SILENT=1 /L*V '%2'| Out-Null ; &'%3'}") + QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}") .arg(preparePathForPowershell(updateFile)) .arg(preparePathForPowershell(msiLogFile)) .arg(preparePathForPowershell(QCoreApplication::applicationFilePath()));