Unattended/silent/quiet installation of Qt 5.8 on Windows





  • I would like to install Qt 5.8 using the qt-enterprise-windows-x86-msvc2015_64-5.8.0.exe installer. I have tried using a controller script as advised in other posts but this still brings up the interactive installer:

    qt-enterprise-windows-x86-msvc2015_64-5.8.0.exe --script qt-installer-noninteractive.qt

    The script qt-installer-noninteractive.qt script looks as follows:

    function Controller() {
    installer.setDefaultPageVisible(QInstaller.Introduction, false);
    installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
    installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
    installer.setDefaultPageVisible(QInstaller.LicenseCheck, false);
    installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false);
    installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false);
    installer.setDefaultPageVisible(QInstaller.PerformInstallation, false);

    installer.autoRejectMessageBoxes();
    installer.installationFinished.connect(function() {
        gui.clickButton(buttons.FinishButton);
    })
    

    }

    Controller.prototype.WelcomePageCallback = function() {
    gui.clickButton(buttons.NextButton);
    }

    Controller.prototype.CredentialsPageCallback = function() {
    gui.clickButton(buttons.NextButton);
    }

    Controller.prototype.IntroductionPageCallback = function() {
    gui.clickButton(buttons.NextButton);
    }

    Controller.prototype.TargetDirectoryPageCallback = function()
    {
    gui.clickButton(buttons.NextButton);
    }

    Controller.prototype.ComponentSelectionPageCallback = function() {

    gui.clickButton(buttons.NextButton);
    

    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.