From: alex-z Date: Wed, 8 Sep 2021 13:13:22 +0000 (+0300) Subject: Prompt reboot when runing the auto update. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~18^2~240^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4018f8d554b72f2a8da35a41f0d7344d1dfc9978;p=nextcloud-desktop.git Prompt reboot when runing the auto update. Signed-off-by: alex-z --- diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index f70641e0a..6d5ee549d 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -107,7 +107,7 @@ bool OCUpdater::performUpdate() const auto messageBoxStartInstaller = new QMessageBox(QMessageBox::Information, tr("New %1 update ready").arg(Theme::instance()->appNameGUI()), tr("A new update for %1 is about to be installed. The updater may ask " - "for additional privileges during the process.") + "for additional privileges during the process. Your computer may reboot to complete the installation.") .arg(Theme::instance()->appNameGUI()), QMessageBox::Ok, nullptr); @@ -214,7 +214,7 @@ void OCUpdater::slotStartInstaller() }; QString msiLogFile = cfg.configPath() + "msi.log"; - QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}") + QString command = QString("&{msiexec /promptrestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}") .arg(preparePathForPowershell(updateFile)) .arg(preparePathForPowershell(msiLogFile)) .arg(preparePathForPowershell(QCoreApplication::applicationFilePath())); @@ -453,7 +453,7 @@ void NSISUpdater::showUpdateErrorDialog(const QString &targetVersion) ico->setPixmap(infoIcon.pixmap(iconSize)); auto lbl = new QLabel; QString txt = tr("

A new version of the %1 Client is available but the updating process failed.

" - "

%2 has been downloaded. The installed version is %3.

") + "

%2 has been downloaded. The installed version is %3. If you confirm restart and upate, your computer may reboot to complete the installation.

") .arg(Utility::escape(Theme::instance()->appNameGUI()), Utility::escape(targetVersion), Utility::escape(clientVersion()));