Is there any way to call a windows cmd command at uninstall process (maintainancetool.exe) of Qt installer framework? I tried to connect the installer.uninstallationFinished signal but no results.
Asked
Active
Viewed 1,061 times
2 Answers
1
+1 Bancha's answer. Also if you are executing the windows command as part of uninstalling a component, it might be better to use the UNDOEXECUTE
component of the Execute operation since it will execute along with the other uninstall operations for the component.
example:
component.addOperation("Execute", "touch", "test.txt", "UNDOEXECUTE", "rm", "test.txt")
0
You can check whether you are in the uninstall mode by installer.isUninstaller()
Below code snippet, may give you a clue.
function Controller() {
if(installer.isUninstaller()) {
installer.uninstallationFinished.connect(this, this.uninstallationFinished);
}
}
Controller.prototype.uninstallationFinished = function() {
//Put you cmd that need to execute after uninstalling finish here
}

Bancha Rajainthong
- 106
- 4
-
installer.isUninstaller() is not working – Shaiful Islam Aug 09 '23 at 07:16