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. qt-installer-noninteractive do not work without proxy
QtWS25 Last Chance

qt-installer-noninteractive do not work without proxy

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 897 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

    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. The same script when i tried to run in docker also did not work. It will show network 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."
    

    Below is my script and screenshot.

    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.qt5.5101.win64_msvc2015_64");
        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);
    }
    
    qt-opensource-windows-x86-5.10.1.exe --verbose --script qt-installer-noninteractive.qs
    

    0_1537531634164_proxy.PNG

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

    0_1537531644748_noproxy.PNG

    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