Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Can you addWizardPage on Uninstaller (QtInstallerFramework)?
Qt 6.11 is out! See what's new in the release blog

Can you addWizardPage on Uninstaller (QtInstallerFramework)?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 219 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.
  • advmA Offline
    advmA Offline
    advm
    wrote on last edited by advm
    #1

    Hi, I am using QtInstallerFramework and I am trying to add custom page when uninstalling the app.

    I have custompage.ui file(simple text) and I am adding it in my package.xml:

    <UserInterfaces>
            <UserInterface>custompage.ui</UserInterface>
    </UserInterfaces>
    

    And this is how I am using it in my componentscript.js:

    Component.prototype.componentLoaded = function ()
    {
        installer.addWizardPage(component, "CustomPage", QInstaller.ReadyForInstallation)
    }
    

    The problem is that the page is displayed only when I install the application. When I uninstall it, CustomPage is not displayed.

    Also, with another approach, if I try to add the customized page in my controlscript.js like this:

    Controller.prototype.ReadyForInstallationPageCallback = function ()
    {
        try {
            installer.addWizardPage(component, "CustomPage", QInstaller.ReadyForInstallation);
        }
        catch (e) {
            QMessageBox.warning("QMessageBox", "", e, QMessageBox.Ok);
        }
    }
    

    I am getting this error:

    ReferenceError: component is not defined
    

    So, it looks like the component is not loaded at all when the application is uninstalled.
    And from Qt documentation we can add custom pages only in components xml file with <UserInterfaces> tag.
    Does this mean that we can not use custom gui pages in the uninstaller or I am missing something?

    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