mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 12:09:55 +02:00
Installer waits for completion.
This commit is contained in:
parent
6b83d98788
commit
4f8182fc1f
1 changed files with 7 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue