Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-714

Hiding component selection page prevents component selection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.0.0 Alpha
    • 2.0.1
    • General
    • None
    • Windows 8.1

    Description

      While creating my custom component selection page, I tried to hide the default component selection page. Unfortunately, this makes it impossible for the installer framework to pick up the selections.

      The way I am currently forwarding the component selections is (pseudocode):
      Controller.prototype.ComponentSelectionPageCallback = function ()
      {
      if (myCustomSelectionPage.component.selected)

      { defaultSelectionPage.selectComponent(component); }

      else

      { defaultSelectionPage.deselectComponent(component); }

      I am skipping the page by using
      installer.setValue("enteredFromBack", "yes");
      if (installer.value("enteredFromBack"))

      { installer.setValue("enteredFromBack", "no"); gui.clickButton(buttons.NextButton); }

      else

      { installer.setValue("enteredFromBack", "yes"); gui.clickButton(buttons.BackButton); }

      Not only is this ugly, it sometimes causes a graphical glitch where the component page is briefly shown.

      Hiding this component page with
      installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
      makes it so that the maintenance tool thinks I installed every component.

      I also can't seem to get the componet and set it's installed value on a different page
      var myComponet = installer.componentByName("myComponentName");
      myComponent.setUninstalled();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            circlesquare Tiger Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes