Installer waits for completion.

This commit is contained in:
NissimHadar 2018-09-03 20:54:48 -07:00
parent 6b83d98788
commit 4f8182fc1f

View file

@ -46,13 +46,16 @@ void TestRunner::installerDownloadComplete() {
}
void TestRunner::runInstaller() {
QProcess installProcess;
// Qt cannot start an installation process using QProcess::start (Qt Bug 9761)
// To allow installation, the installer is run using the `system` command
QStringList arguments{ QStringList() << QString("/S") << QString("/D=") + QDir::toNativeSeparators(_tempDirectory) };
QString installerFullPath = _tempDirectory + "/" + _installerFilename;
qint64 pid;
QProcess::startDetached(installerFullPath, arguments, QString(), &pid);
QString commandLine = installerFullPath + " /S /D=" + QDir::toNativeSeparators(_tempDirectory);
system(commandLine.toStdString().c_str());
int i = 34;
//qint64 pid;
//QProcess::startDetached(installerFullPath, arguments, QString(), &pid);
}
void TestRunner::saveExistingHighFidelityAppDataFolder() {