mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-26 17:54:31 +00:00
24 lines
609 B
JavaScript
24 lines
609 B
JavaScript
function Controller()
|
|
{
|
|
installer.uninstallationFinished.connect(this, Controller.prototype.uninstallationFinished);
|
|
installer.installationFinished.connect(this, Controller.prototype.installationFinished);
|
|
}
|
|
|
|
|
|
function runProgramControl() {
|
|
if (systemInfo.kernelType === "winnt") {
|
|
installer.setValue("RunProgram", "@TargetDir@/HanoiTowers.exe");
|
|
} else {
|
|
installer.setValue("RunProgram", "@TargetDir@/HanoiTowers.sh");
|
|
}
|
|
}
|
|
|
|
Controller.prototype.uninstallationFinished = function() {
|
|
|
|
}
|
|
|
|
Controller.prototype.installationFinished = function() {
|
|
runProgramControl();
|
|
}
|
|
|