forked from NREL/OpenStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.qs
47 lines (38 loc) · 1.42 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
function Controller () {
// silent install is not an option until QtIFW v3.0.1
// gui.setSilent(true);
}
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);
}