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. Unable to install QT 5.10.1 non-interactively in docker container
QtWS25 Last Chance

Unable to install QT 5.10.1 non-interactively in docker container

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 1.5k 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.
  • U Offline
    U Offline
    user2301
    wrote on last edited by
    #1

    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 warning and it will not proceed further and gets stuck. The docker execution is mentioned below.

    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.deselectComponent("qt.tools.vcredist_msvc2015_x64");
        widget.deselectComponent("qt.qt5.5101.win64_msvc2015_64");
        widget.deselectComponent("qt.tools.vcredist_msvc2015_x86");
        widget.deselectComponent("qt.qt5.5101.doc");
        widget.deselectComponent("qt.qt5.5101.examples");
    
        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);
    }
    
    Sending build context to Docker daemon  2.522GB
    Step 1/6 : FROM mstool:latest
     ---> 1d1ad9bdf4f0
    Step 2/6 : COPY ./install C:/tmp/qt
     ---> Using cache
     ---> 51c5e6cb6a87
    Step 3/6 : RUN C:\tmp\qt\qt-opensource-windows-x86-5.10.1.exe --script C:\tmp\qt\qt-installer-noninteractive.qs
     ---> Running in bf5f50b917a1
    [964] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
    [968] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
    [337689] Warning: Network error: [ QNetworkReply::NetworkError(UnknownNetworkError) ] "Failed to connect to server. Check your network connection and try again."
    
    jsulmJ 1 Reply Last reply
    0
    • U user2301

      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 warning and it will not proceed further and gets stuck. The docker execution is mentioned below.

      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.deselectComponent("qt.tools.vcredist_msvc2015_x64");
          widget.deselectComponent("qt.qt5.5101.win64_msvc2015_64");
          widget.deselectComponent("qt.tools.vcredist_msvc2015_x86");
          widget.deselectComponent("qt.qt5.5101.doc");
          widget.deselectComponent("qt.qt5.5101.examples");
      
          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);
      }
      
      Sending build context to Docker daemon  2.522GB
      Step 1/6 : FROM mstool:latest
       ---> 1d1ad9bdf4f0
      Step 2/6 : COPY ./install C:/tmp/qt
       ---> Using cache
       ---> 51c5e6cb6a87
      Step 3/6 : RUN C:\tmp\qt\qt-opensource-windows-x86-5.10.1.exe --script C:\tmp\qt\qt-installer-noninteractive.qs
       ---> Running in bf5f50b917a1
      [964] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
      [968] Warning: QWinTaskbarButton: qIID_ITaskbarList4 was not created: 0x80040154, REGDB_E_CLASSNOTREG.
      [337689] Warning: Network error: [ QNetworkReply::NetworkError(UnknownNetworkError) ] "Failed to connect to server. Check your network connection and try again."
      
      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @user2301 It says it can't connect to server. Do you have Internet connection?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      U 1 Reply Last reply
      0
      • jsulmJ jsulm

        @user2301 It says it can't connect to server. Do you have Internet connection?

        U Offline
        U Offline
        user2301
        wrote on last edited by
        #3

        @jsulm Yeah I do have internet on my Windows server 2016 VM. When I run this script on VM it installed. When I try to run the same insatller inside docker, it will get stuck and show this warning.

        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