Skip to content

Commit

Permalink
fix install script for qt installer 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mjoppich committed Jul 25, 2018
1 parent 3a605ce commit 91d204a
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions silent_qt_install.qs
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
function Controller() {
installer.autoRejectMessageBoxes();

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

installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
installer.setMessageBoxAutomaticAnswer("stopProcessesForUpdates", QMessageBox.Ignore);

var page = gui.pageWidgetByObjectName("WelcomePage")
page.completeChanged.connect(welcomepageFinished)
}

Controller.prototype.WelcomePageCallback = function() {
gui.clickButton(buttons.NextButton);
welcomepageFinished = function()
{
//completeChange() -function is called also when other pages visible
//Make sure that next button is clicked only when in welcome page
if(gui.currentPageWidget().objectName == "WelcomePage") {
gui.clickButton( buttons.NextButton);
}
}


Controller.prototype.CredentialsPageCallback = function() {
gui.clickButton(buttons.NextButton);
}
Expand All @@ -17,45 +30,41 @@ Controller.prototype.IntroductionPageCallback = function() {
gui.clickButton(buttons.NextButton);
}

Controller.prototype.TargetDirectoryPageCallback = function()
{
gui.currentPageWidget().TargetDirectoryLineEdit.setText("/usr/local/qt");
Controller.prototype.TargetDirectoryPageCallback = function() {
// gui.currentPageWidget().TargetDirectoryLineEdit.setText("/where/to/install/Qt");

gui.clickButton(buttons.NextButton);
}

Controller.prototype.ComponentSelectionPageCallback = function() {
var widget = gui.currentPageWidget();

widget.deselectAll();
widget.selectComponent("qt.qt5.5111.gcc_64");

// widget.selectComponent("qt.592.gcc_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);
// gui.clickButton(buttons.NextButton);
}

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

Controller.prototype.PerformInstallationPageCallback = function()
{
gui.clockButton(buttons.CommitButton);
Controller.prototype.FinishedPageCallback = function() {
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm;

}
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox)
checkBoxForm.launchQtCreatorCheckBox.checked = false;

Controller.prototype.FinishedPageCallback = function() {
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
checkBoxForm.launchQtCreatorCheckBox.checked = false;
}
gui.clickButton(buttons.FinishButton);
}

0 comments on commit 91d204a

Please sign in to comment.