226 |
bj |
1 |
; ----------------------------------------------------------------------------
|
|
|
2 |
;
|
|
|
3 |
; AutoIt Version: 3.1.0
|
|
|
4 |
; Author: A.N.Other <myemail@nowhere.com>
|
|
|
5 |
;
|
|
|
6 |
; Script Function:
|
|
|
7 |
; Template AutoIt script.
|
|
|
8 |
;
|
|
|
9 |
; ----------------------------------------------------------------------------
|
|
|
10 |
|
|
|
11 |
; Script Start - Add your code below here
|
228 |
bj |
12 |
#include <GELfunc.au3>
|
|
|
13 |
#include <GUIConstants.au3
|
|
|
14 |
; == GUI generated with Koda ==);
|
|
|
15 |
$GELinstall_src = GUICreate("GEL source Installer", 622, 442, 389, 119)
|
|
|
16 |
$Button1 = GUICtrlCreateButton("Modify env vars and install 3rd party libs", 32, 384, 320, 41, 0)
|
|
|
17 |
$Group3 = GUICtrlCreateGroup("Install Path (where GEL is build and 3rd party libs are copied to)", 32, 32, 553, 89)
|
|
|
18 |
$Input1 = GUICtrlCreateInput("c:\GEL", 48, 64, 489, 24)
|
|
|
19 |
$Button2 = GUICtrlCreateButton("...", 544, 64, 27, 25, 0)
|
|
|
20 |
GUICtrlCreateGroup("", -99, -99, 1, 1)
|
|
|
21 |
$Combo1 = GUICtrlCreateCombo("", 208, 144, 145, 24)
|
|
|
22 |
GUICtrlSetData(-1, "2003|2005", "2003")
|
|
|
23 |
GUICtrlCreateLabel("Visual Studio Version", 32, 144, 131, 20, $SS_CENTERIMAGE)
|
|
|
24 |
GUICtrlCreateLabel("Library Type", 32, 192, 80, 20, $SS_CENTERIMAGE)
|
|
|
25 |
GUICtrlCreateLabel("Environment variable scope", 32, 240, 171, 20, $SS_CENTERIMAGE)
|
|
|
26 |
$Combo2 = GUICtrlCreateCombo("", 208, 192, 145, 24)
|
|
|
27 |
GUICtrlSetData(-1, "Separate Libraries|Single Library|CGLA Only", "Separate Libraries")
|
|
|
28 |
$Combo3 = GUICtrlCreateCombo("", 208, 240, 145, 24)
|
|
|
29 |
GUICtrlSetData(-1, "Current User|System", "Current User")
|
|
|
30 |
$Button3 = GUICtrlCreateButton("Build Solution", 368, 384, 192, 41, 0)
|
|
|
31 |
$Checkbox1 = GUICtrlCreateCheckbox("Install Perl", 32, 304, 145, 17)
|
|
|
32 |
GUISetState(@SW_SHOW)
|
|
|
33 |
While 1
|
|
|
34 |
$msg = GuiGetMsg()
|
|
|
35 |
Select
|
|
|
36 |
Case $msg = $GUI_EVENT_CLOSE
|
|
|
37 |
ExitLoop
|
|
|
38 |
Case $msg = $Button1
|
|
|
39 |
installLibs(GUICtrlRead($Input1), GUICtrlRead($Combo3))
|
|
|
40 |
Case $msg = $Button2
|
|
|
41 |
updatePath($Input1)
|
|
|
42 |
Case $msg = $Button3
|
|
|
43 |
makeSolution(GUICtrlRead($Input1), GUICtrlRead($Combo1), GUICtrlRead($Combo2), GUICtrlRead($Combo3))
|
|
|
44 |
|
|
|
45 |
EndSelect
|
|
|
46 |
WEnd
|
226 |
bj |
47 |
|
227 |
bj |
48 |
|
|
|
49 |
|