mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:34:09 +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() {
|
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) };
|
QStringList arguments{ QStringList() << QString("/S") << QString("/D=") + QDir::toNativeSeparators(_tempDirectory) };
|
||||||
|
|
||||||
QString installerFullPath = _tempDirectory + "/" + _installerFilename;
|
QString installerFullPath = _tempDirectory + "/" + _installerFilename;
|
||||||
qint64 pid;
|
QString commandLine = installerFullPath + " /S /D=" + QDir::toNativeSeparators(_tempDirectory);
|
||||||
QProcess::startDetached(installerFullPath, arguments, QString(), &pid);
|
system(commandLine.toStdString().c_str());
|
||||||
|
int i = 34;
|
||||||
|
//qint64 pid;
|
||||||
|
//QProcess::startDetached(installerFullPath, arguments, QString(), &pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestRunner::saveExistingHighFidelityAppDataFolder() {
|
void TestRunner::saveExistingHighFidelityAppDataFolder() {
|
||||||
|
|
Loading…
Reference in a new issue