Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Qt Installer Framework] How to modify MaintenanceTool?
Forum Updated to NodeBB v4.3 + New Features

[Qt Installer Framework] How to modify MaintenanceTool?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 396 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akhi95
    wrote on last edited by
    #1

    Hi. I wish to modify MaintenanceTool of QtIFW. I have two queries:

    1. 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?

    2. 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!

    A 1 Reply Last reply
    0
    • A akhi95

      Hi. I wish to modify MaintenanceTool of QtIFW. I have two queries:

      1. 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?

      2. 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!

      A Offline
      A Offline
      akhi95
      wrote on last edited by akhi95
      #2

      @akhi95 I found out some additional info. I think the below two installer signals and three methods might be useful. I tried :

      1. installer.uninstallationStarted() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#uninstallationStarted-signal]

      2. installer.uninstallationFinished() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#uninstallationFinished-signal]

      3. installer.runUninstaller() [https://doc.qt.io/qtinstallerframework/scripting-installer.html#runUninstaller-method]

      4. installer.setCompleteUninstallation(bool complete) [https://doc.qt.io/qtinstallerframework/scripting-installer.html#setCompleteUninstallation-method]

      5. 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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved