forked from Componolit/Cappulada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.qs
37 lines (31 loc) · 1 KB
/
script.qs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function Controller() {
installer.setValue("TargetDir", "/opt/gnat");
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
})
}
Controller.prototype.ComponentSelectionPageCallback = function()
{
var page = gui.currentPageWidget();
page.deselectAll();
page.selectComponent("com.adacore.gnat");
page.selectComponent("com.adacore.spark2014_discovery");
gui.clickButton(buttons.NextButton);
}
Controller.prototype.LicenseAgreementPageCallback = function()
{
var page = gui.pageById(QInstaller.LicenseCheck);
page.AcceptLicenseRadioButton.click();
gui.clickButton(buttons.NextButton);
}
Controller.prototype.IntroductionPageCallback =
Controller.prototype.TargetDirectoryPageCallback =
Controller.prototype.ReadyForInstallationPageCallback = function()
{
gui.clickButton(buttons.NextButton);
}
Controller.prototype.FinishedPageCallback = function()
{
gui.clickButton(buttons.FinishButton);
}