Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2018-06-25 14:42:12 +0300
committerDominik Schmidt <domme@tomahawk-player.org>2018-06-27 11:25:33 +0300
commit150d4f5935c9480cae0a84506af4efa940b64095 (patch)
treee39db6a0b73288f5192772eff0b43e03905e9730 /src/gui/updater
parente2a8975ad842011ef6e175af5b802be6b9f9a8dc (diff)
MSI: Always with logfile #6609
Diffstat (limited to 'src/gui/updater')
-rw-r--r--src/gui/updater/ocupdater.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp
index d11337814..9dc4ef9a3 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});
}