Line 17... |
Line 17... |
17 |
; == GUI generated with Koda ==);
|
17 |
; == GUI generated with Koda ==);
|
18 |
#include <GUIConstants.au3
|
18 |
#include <GUIConstants.au3
|
19 |
; == GUI generated with Koda ==);
|
19 |
; == GUI generated with Koda ==);
|
20 |
$GELinstall_src = GUICreate("GEL Installer", 474, 281, 389, 119)
|
20 |
$GELinstall_src = GUICreate("GEL Installer", 474, 281, 389, 119)
|
21 |
$DoitButton = GUICtrlCreateButton("Do It!", 16, 192, 192, 41, 0)
|
21 |
$DoitButton = GUICtrlCreateButton("Do It!", 16, 192, 192, 41, 0)
|
22 |
$Group3 = GUICtrlCreateGroup("Install Path (where GEL and 3rd party libs are copied to)", 16, 32, 432, 89)
|
22 |
$Group3 = GUICtrlCreateGroup("Install Path (where GEL is build and 3rd party libs are copied to)", 16, 32, 432, 89)
|
23 |
$pathInput = GUICtrlCreateInput("c:\GEL", 32, 64, 345, 24)
|
23 |
$pathInput = GUICtrlCreateInput("c:\GEL", 32, 64, 345, 24)
|
24 |
$browseButton = GUICtrlCreateButton("...", 400, 64, 27, 25, 0)
|
24 |
$browseButton = GUICtrlCreateButton("...", 400, 64, 27, 25, 0)
|
25 |
GUICtrlCreateGroup("", -99, -99, 1, 1)
|
25 |
GUICtrlCreateGroup("", -99, -99, 1, 1)
|
26 |
GUICtrlCreateLabel("Environment variable scope", 16, 144, 187, 20, $SS_CENTERIMAGE)
|
26 |
GUICtrlCreateLabel("Environment variable scope", 16, 144, 187, 20, $SS_CENTERIMAGE)
|
27 |
$scopeCombo = GUICtrlCreateCombo("", 240, 144, 208, 24)
|
27 |
$scopeCombo = GUICtrlCreateCombo("", 240, 144, 208, 24)
|
28 |
GUICtrlSetData(-1, "Current User|System", "Current User")
|
28 |
GUICtrlSetData(-1, "Current User|System", "Current User")
|
29 |
$cancelButton = GUICtrlCreateButton("Cancel", 240, 192, 208, 41, 0)
|
29 |
$cancelButton = GUICtrlCreateButton("Close", 240, 192, 208, 41, 0)
|
30 |
|
30 |
|
31 |
useExisting($pathInput , GUICtrlRead( $scopeCombo ))
|
31 |
useExisting($pathInput , GUICtrlRead( $scopeCombo ))
|
32 |
|
32 |
|
33 |
GUISetState(@SW_SHOW)
|
33 |
GUISetState(@SW_SHOW)
|
34 |
|
34 |
|
Line 37... |
Line 37... |
37 |
$msg = GuiGetMsg()
|
37 |
$msg = GuiGetMsg()
|
38 |
Select
|
38 |
Select
|
39 |
Case $msg = $GUI_EVENT_CLOSE
|
39 |
Case $msg = $GUI_EVENT_CLOSE
|
40 |
ExitLoop
|
40 |
ExitLoop
|
41 |
Case $msg = $DoitButton
|
41 |
Case $msg = $DoitButton
|
42 |
installLibs(GUICtrlRead( $pathInput ), GUICtrlRead( $scopeCombo ))
|
42 |
installLibs(GUICtrlRead( $pathInput ), GUICtrlRead( $scopeCombo ))
|
43 |
|
43 |
|
44 |
Case $msg = $browseButton
|
44 |
Case $msg = $browseButton
|
45 |
updatePath( $pathInput )
|
45 |
updatePath( $pathInput )
|
46 |
Case $msg = $cancelButton
|
46 |
Case $msg = $cancelButton
|
47 |
ExitLoop
|
47 |
ExitLoop
|
48 |
|
48 |
|