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."