1 #ifndef UPDATER_IMPL_RUNINSTALLER_H
2 #define UPDATER_IMPL_RUNINSTALLER_H
11 * Installer implementation that executes a command with arguments
13 class RunInstaller : public Installer {
18 void setCommand(const QString &value) { command = value; }
19 void setArguments(const QStringList &value) { arguments = value; };
21 * Currently supported on Linux only using PackageKit (pkexec)
23 void setRunAsAdmin(bool value) { runAsAdmin = value; }
25 * This will cause the update process to run while the app is still running. Then the app will
28 void setAutoRestart(bool value) { autoRestart = value; }
30 void setRelaunchArguments(const QStringList &value) { autoRestartArguments = value; }
32 void start(const QString &filename);
36 QStringList arguments;
37 bool runAsAdmin = false;
38 bool autoRestart = false;
39 QStringList autoRestartArguments;
42 } // namespace updater
44 #endif // UPDATER_IMPL_RUNINSTALLER_H