QIF installer.execute() is killed after app uninstallation
Unsolved
Installation and Deployment
-
Hi, I have problem with executing command while uninstalling the application.
I am trying with simplepwd
command.If I run the command before uninstallation is started, it works and
installer.execute()
returns error code 0. But If I run the command on the last Finished page(after uninstallation) the command is killed and it returns error code 9. This is an example with my approach incontrolscript.js
:// Before uninstallation Controller.prototype.ReadyForInstallationPageCallback = function() { if (installer.isUninstaller()) { let result = installer.execute("pwd"); QMessageBox.warning("quit.question", "Result", result, QMessageBox.Ok); } } // After uninstallation Controller.prototype.FinishedPageCallback = function () { if (installer.isUninstaller()) { let result = installer.execute("pwd"); QMessageBox.warning("quit.question", "Result", result, QMessageBox.Ok); } }
This is from the command on ReadyForInstallationPageCallback:
And this is from the execution on FinishedPageCallback :
The same approach is for windows/linux, but it is successful and both results are 0.
Any ideas why is this problem on macOS or suggestions to avoid this problem?