diff options
Diffstat (limited to 'tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp')
-rw-r--r-- | tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp index a57098d2a..a08567d64 100644 --- a/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp +++ b/tests/auto/installer/createshortcutoperation/tst_createshortcutoperation.cpp @@ -52,10 +52,10 @@ private: void installFromCLI(const QString &repository) { QInstaller::init(); - PackageManagerCore *core = new PackageManagerCore(BinaryContent::MagicInstallerMarker, QList<OperationBlob> (), - QString(), Protocol::DefaultAuthorizationKey, Protocol::Mode::Production, - QHash<QString, QString>(), true); - core->setAllowedRunningProcesses(QStringList() << QCoreApplication::applicationFilePath()); + QScopedPointer<PackageManagerCore> core(new PackageManagerCore(BinaryContent::MagicInstallerMarker, + QList<OperationBlob> (), QString(), QString(), Protocol::DefaultAuthorizationKey, + Protocol::Mode::Production, QHash<QString, QString>(), true)); + core->disableWriteMaintenanceTool(); core->setAutoConfirmCommand(); QSet<Repository> repoList; @@ -69,7 +69,7 @@ private: core->installDefaultComponentsSilently(); QSettingsWrapper user(QLatin1String("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\" - "CurrentVersion\\Explorer\\User Shell Folders"), QSettingsWrapper::NativeFormat); + "CurrentVersion\\Explorer\\User Shell Folders"), QSettings::NativeFormat); //Replace %USERS% from "Programs" const QString programs = replaceWindowsEnvironmentVariables(user.value(QLatin1String("Programs"), QString()).toString()); const QString startMenuDir = programs + QDir::separator() + "Qt Installer Framework Unit Test"; |