Unsolved [Qt Installer Framework] How to modify MaintenanceTool?
-
Hi. I wish to modify MaintenanceTool of QtIFW. I have two queries:
-
UI Modification: When we run MaintenanceTool of an installer created using QtIFW, the first page comes with three radio buttons: add/remove components, update components and remove all components. I wish to either remove this page altogether or just show remove all components button. Is it possible?
-
Run batch file: I want to run a batch file during uninstallation, i.e., when MaintenanceTool is running. Is there a way of doing it? I cannot use UNDOEXECUTE in my scenario.
Thanks for the help!
-
-
@akhi95 I found out some additional info. I think the below two installer signals and three methods might be useful. I tried :
-
installer.uninstallationStarted() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#uninstallationStarted-signal]
-
installer.uninstallationFinished() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#uninstallationFinished-signal]
-
installer.runUninstaller() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#runUninstaller-method]
-
installer.setCompleteUninstallation(bool complete) [https://doc.qt.io/qtinstallerframework/scripting-installer.html#setCompleteUninstallation-method]
-
installer.setUninstaller() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#setUninstaller-method]
I tried runUninstaller() and setCompleteUninstallation() methods in constructor of one of my component scripts but for some reason the uninstaller (MaintenanceTool) is not being called. Also, I'm not sure what does setUninstaller() do and how to use it. But I think it might be useful for my case.
-