From 5ce02c23c72adfe09bc0e85f802f5a6d77b79e3f Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Sun, 30 Sep 2018 17:40:05 -0700 Subject: [PATCH] Add UAC warning if install fails. --- tools/auto-tester/src/TestRunner.cpp | 8 ++++---- tools/auto-tester/src/ui/AutoTester.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/auto-tester/src/TestRunner.cpp b/tools/auto-tester/src/TestRunner.cpp index 8b40b15260..f795826f6b 100644 --- a/tools/auto-tester/src/TestRunner.cpp +++ b/tools/auto-tester/src/TestRunner.cpp @@ -172,11 +172,11 @@ void TestRunner::verifyInstallationSucceeded() { // Exit if the executables are missing. // On Windows, the reason is probably that UAC has blocked the installation. This is treated as a critical error #ifdef Q_OS_WIN - QFileInfo interfacExe(QDir::toNativeSeparators(_installationFolder) + "\\interface.exe\""); - QFileInfo assignmentClientExe(QDir::toNativeSeparators(_installationFolder) + "\\assignment-client.exe\""); - QFileInfo domainServerExe(QDir::toNativeSeparators(_installationFolder) + "\\domain-server.exe\""); + QFileInfo interfaceExe(QDir::toNativeSeparators(_installationFolder) + "\\interface.exe"); + QFileInfo assignmentClientExe(QDir::toNativeSeparators(_installationFolder) + "\\assignment-client.exe"); + QFileInfo domainServerExe(QDir::toNativeSeparators(_installationFolder) + "\\domain-server.exe"); - if (!interfacExe.exists() || !assignmentClientExe.exists() || !domainServerExe.exists()) { + if (!interfaceExe.exists() || !assignmentClientExe.exists() || !domainServerExe.exists()) { QMessageBox::critical(0, "Installation of High Fidelity has failed", "Please verify that UAC has been disabled"); exit(-1); } diff --git a/tools/auto-tester/src/ui/AutoTester.cpp b/tools/auto-tester/src/ui/AutoTester.cpp index 2764caf30c..e08224359f 100644 --- a/tools/auto-tester/src/ui/AutoTester.cpp +++ b/tools/auto-tester/src/ui/AutoTester.cpp @@ -36,7 +36,7 @@ AutoTester::AutoTester(QWidget* parent) : QMainWindow(parent) { _ui.statusLabel->setText(""); _ui.plainTextEdit->setReadOnly(true); - setWindowTitle("Auto Tester - v4.5"); + setWindowTitle("Auto Tester - v4.6"); // Coming soon to an auto-tester near you... //// _helpWindow.textBrowser->setText()