I have a batch script that does some clean up, which is installed along the main application. However, I cannot seem to execute the batch file before uninstallation. Here is my install script:
function Component() {
}
function Controller() {
installer.setDefaultPageVisible(QTInstaller.TargetDirectory, false);
}
Controller.prototype.uninstallationStartedFunction = function() {
if(systemInfo.productType == "windows") {
installer.gainAdminRights();
installer.execute(installer.value("TargetDir") + "/disable.bat");
}
}
Any help is appreciated.