function Controller()
|
{
|
//installer.gainAdminRights();
|
installer.uninstallationFinished.connect(this, this.uninstallationFinished);
|
installer.uninstallationStarted.connect(this, this.uninstallationStarted);
|
|
}
|
|
|
Controller.prototype.uninstallationStarted = function()
|
{
|
try {
|
|
var tmpSys = installer.value("os")
|
if (tmpSys === "win") {
|
// installer.execute("@TargetDir@/mbwatch.exe","-t");
|
// installer.execute("@TargetDir@/mbwatch.exe","-u");
|
|
}else{
|
// installer.execute("@TargetDir@/mbwatch","-t");
|
// installer.execute("@TargetDir@/mbwatch","-u");
|
|
}
|
} catch(e) {
|
console.log(e);
|
}
|
|
}
|
|
|
Controller.prototype.uninstallationFinished = function()
|
{
|
console.log("uninstallationFinished")
|
}
|