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

Cannot skip the qt account login page using controller script with Qt5.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 2.0.1
    • General
    • None
    • Fedora 24, x86_64

    Description

      When install the Qt 5.7.0 with controller script following the instruction , but the Qt account login can not skipped by this script configuration.

      The following is my cmd line:

      ./qt-opensource-linux-x64-5.7.0.run  --script qt5-silently-installer.qs
      

      The content of qt5-silently-installer.qs is:

      function Controller() {
          installer.setDefaultPageVisible(QInstaller.Introduction, false);
          installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
          installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
          installer.setDefaultPageVisible(QInstaller.LicenseCheck, false);
          installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false);
          installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false);
          installer.setDefaultPageVisible(QInstaller.PerformInstallation, false);
      
          installer.autoRejectMessageBoxes();
          installer.installationFinished.connect(function() {
              gui.clickButton(buttons.FinishButton);
          })
      }
      
      Controller.prototype.WelcomePageCallback = function() {
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.CredentialsPageCallback = function() {
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.IntroductionPageCallback = function() {
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.TargetDirectoryPageCallback = function()
      {
          gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("/opt") + "/Qt5.7.0");
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.ComponentSelectionPageCallback = function() {
      
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.LicenseAgreementPageCallback = function() {
          gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.StartMenuDirectoryPageCallback = function() {
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.ReadyForInstallationPageCallback = function()
      {
          gui.clickButton(buttons.NextButton);
      }
      
      Controller.prototype.FinishedPageCallback = function() {
      var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
      if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
          checkBoxForm.launchQtCreatorCheckBox.checked = false;
      }
          gui.clickButton(buttons.FinishButton);
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              kamartti Katja Marttila
              jack_liu Jack Liu
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes