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

Unable to install QT 5.10.1 non-interactively in windows docker container

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • General
    • Windows

    Description

      Hi, I am trying to install QT 5.10.1 using docker. Below is my controller script and downloaded qt-opensource-windows-x86-5.10.1.exe . When I build the docker image, I get network errorand it will not proceed further and gets stuck. I tried to enable and disable proxy. When is it required to connect to internet and which component is required to be downloaded from internet?

       Also, When I try to run qt-installer-noninteractive.qs in windows server 2016 without proxy, it will not work. It gets stuck at license information page. I enabled cntlm proxy but it will pop up a window and I have to enter username and password. When I cancel the dialog, I was still able to continue the installation. Without proxy it will not work but when I enable cntlm proxy and cancel the dialog without entering the username and password it works. I dont want to see the popup dialog. How can I suppress that in the script?. I dont want user to interfere with entering credentials or to cancel the dialog. 

       with cntlm proxy enabled PFA screenshot.

      qt-opensource-windows-x86-5.10.1.exe --verbose --script qt-installer-noninteractive.qs

      without proxy PFA screenshot.

      qt-opensource-windows-x86-5.10.1.exe --verbose --no-proxy --script qt-installer-noninteractive.qs
      function Controller() {
       installer.autoRejectMessageBoxes();
       installer.installationFinished.connect(function() {
       gui.clickButton(buttons.NextButton);
       })
      }
      Controller.prototype.WelcomePageCallback = function() {
       gui.clickButton(buttons.NextButton, 3000);
      }
      Controller.prototype.CredentialsPageCallback = function() {
       gui.clickButton(buttons.NextButton);
      }
      Controller.prototype.IntroductionPageCallback = function() {
       gui.clickButton(buttons.NextButton);
      }
      Controller.prototype.TargetDirectoryPageCallback = function()
      {
       gui.currentPageWidget().TargetDirectoryLineEdit.setText("C:\\Qt");
       gui.clickButton(buttons.NextButton);
      }
      Controller.prototype.ComponentSelectionPageCallback = function() {
       var widget = gui.currentPageWidget();
      widget.deselectAll();
      widget.selectComponent("qt.tools.qtcreator");
       widget.selectComponent("qt.tools.vcredist_msvc2015_x64");
      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);
      }
      

      Dockerfile:

      FROM microsoft/windowsservercore:10.0.14393.2189
      COPY ["./install", "C:/tmp/qt"]
      
      RUN ["C:\\tmp\\qt\\qt-opensource-windows-x86-5.10.1.exe", "--verbose", "--script C:\\tmp\\qt\\qt-installer-noninteractive.qs"]
      ENV PATH "$PATH:C:\Qt\Qt5.10.1"
      ENV PATH "$PATH:C:\Program Files (x86)\Microsoft Visual Studio 15.0\VC"
      CMD ["vcvarsall.bat", "x86_amd64"]
      

      Docker build failed with error:

      [1988] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
      [2056] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
      [2178] Loaded control script "C:\\tmp\\qt\\qt-installer-noninteractive.qs"
      [2178] Using control script: "C:\\tmp\\qt\\qt-installer-noninteractive.qs"
      [19414] Warning: Network error: [ QNetworkReply::NetworkError(HostNotFoundError) ] "Failed to connect to server. Check your network connection and try again."

      Attachments

        1. noproxy.PNG
          noproxy.PNG
          16 kB
        2. proxy.PNG
          proxy.PNG
          32 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            user2301 user2301
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes