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 |
|
231 |
bj |
11 |
|
228 |
bj |
12 |
#include <GELfunc.au3>
|
|
|
13 |
#include <GUIConstants.au3
|
231 |
bj |
14 |
|
|
|
15 |
|
228 |
bj |
16 |
; == GUI generated with Koda ==);
|
233 |
bj |
17 |
#include <GUIConstants.au3
|
|
|
18 |
; == GUI generated with Koda ==);
|
|
|
19 |
$GELinstall_src = GUICreate("GEL source Installer", 474, 281, 389, 119)
|
|
|
20 |
$DoitButton = GUICtrlCreateButton("Do It!", 16, 192, 192, 41, 0)
|
|
|
21 |
$Group3 = GUICtrlCreateGroup("Install Path (where GEL is build and 3rd party libs are copied to)", 16, 32, 432, 89)
|
|
|
22 |
$pathInput = GUICtrlCreateInput("c:\GEL", 32, 64, 345, 24)
|
|
|
23 |
$browseButton = GUICtrlCreateButton("...", 400, 64, 27, 25, 0)
|
228 |
bj |
24 |
GUICtrlCreateGroup("", -99, -99, 1, 1)
|
233 |
bj |
25 |
GUICtrlCreateLabel("Environment variable scope", 16, 144, 187, 20, $SS_CENTERIMAGE)
|
|
|
26 |
$scopeCombo = GUICtrlCreateCombo("", 240, 144, 208, 24)
|
228 |
bj |
27 |
GUICtrlSetData(-1, "Current User|System", "Current User")
|
233 |
bj |
28 |
$cancelButton = GUICtrlCreateButton("Cancel", 240, 192, 208, 41, 0)
|
237 |
bj |
29 |
|
|
|
30 |
useExisting($pathInput , GUICtrlRead( $scopeCombo ))
|
|
|
31 |
|
228 |
bj |
32 |
GUISetState(@SW_SHOW)
|
233 |
bj |
33 |
|
|
|
34 |
|
228 |
bj |
35 |
While 1
|
|
|
36 |
$msg = GuiGetMsg()
|
|
|
37 |
Select
|
|
|
38 |
Case $msg = $GUI_EVENT_CLOSE
|
|
|
39 |
ExitLoop
|
233 |
bj |
40 |
Case $msg = $DoitButton
|
236 |
bj |
41 |
installLibs(GUICtrlRead( $pathInput ), GUICtrlRead( $scopeCombo ))
|
231 |
bj |
42 |
|
233 |
bj |
43 |
Case $msg = $browseButton
|
|
|
44 |
updatePath( $pathInput )
|
|
|
45 |
Case $msg = $cancelButton
|
231 |
bj |
46 |
ExitLoop
|
|
|
47 |
|
228 |
bj |
48 |
EndSelect
|
|
|
49 |
WEnd
|
226 |
bj |
50 |
|
227 |
bj |
51 |
|
|
|
52 |
|