Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt-installer-noninteractive do not work without proxy



  • 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


Log in to reply