-
Notifications
You must be signed in to change notification settings - Fork 193
/
install.qs
60 lines (48 loc) · 1.8 KB
/
install.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
function Controller () {
installer.autoRejectMessageBoxes();
// silent install is not an option until QtIFW v3.0.1
gui.setSilent(true);
installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory",
QMessageBox.Yes);
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
});
// Uninstaller
installer.uninstallationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
});
}
Controller.prototype.IntroductionPageCallback = function () {
gui.clickButton(buttons.NextButton);
}
Controller.prototype.ComponentSelectionPageCallback = function () {
var widget = gui.currentPageWidget();
// to install a subset of components, uncomment the code below and edit as neccesary
//widget.deselectAll();
//widget.selectComponent('SketchUpPlugin');
//widget.selectComponent('CLI');
//widget.selectComponent('RubyAPI');
//widget.selectComponent('CSharpAPI');
//widget.selectComponent('PAT');
//widget.selectComponent('OpenStudioApp');
//widget.selectComponent('DView');
//widget.selectComponent('EnergyPlus');
//widget.selectComponent('Radiance');
//widget.selectComponent('Resources');
gui.clickButton(buttons.NextButton);
}
Controller.prototype.TargetDirectoryPageCallback = function () {
// set install directory if needed
var widget = gui.currentPageWidget();
widget.TargetDirectoryLineEdit.setText("c:\\openstudio")
gui.clickButton(buttons.NextButton);
}
Controller.prototype.StartMenuDirectoryPageCallback = function () {
gui.clickButton(buttons.NextButton);
}
Controller.prototype.ReadyForInstallationPageCallback = function () {
gui.clickButton(buttons.NextButton);
}
Controller.prototype.FinishedPageCallback = function () {
gui.clickButton(buttons.FinishButton);
}