From: Markus Goetz Date: Mon, 25 Jun 2018 11:42:12 +0000 (+0200) Subject: MSI: Always with logfile #6609 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~46^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5e518419de89bd06cd6fcec616471aa36f36ea2f;p=nextcloud-desktop.git MSI: Always with logfile #6609 --- diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 02f01707d..62514a5ce 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -208,9 +208,11 @@ void OCUpdater::slotStartInstaller() return QDir::toNativeSeparators(path); }; - QString command = QString("&{msiexec /norestart /passive /i '%1'| Out-Null ; &'%2'}") - .arg(preparePathForPowershell(updateFile)) - .arg(preparePathForPowershell(QCoreApplication::applicationFilePath())); + auto msiLogFile = cfg.configPath() + "msi.log"; + QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}") + .arg(preparePathForPowershell(updateFile)) + .arg(preparePathForPowershell(msiLogFile)) + .arg(preparePathForPowershell(QCoreApplication::applicationFilePath())); QProcess::startDetached("powershell.exe", QStringList{"-Command", command}); }