Skip to content

Commit

Permalink
MSI: Always with logfile #6609
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Goetz authored and dschmidt committed Jun 27, 2018
1 parent e2a8975 commit 150d4f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gui/updater/ocupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
Expand Down

0 comments on commit 150d4f5

Please sign in to comment.