Subversion Repositories gelsvn

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
228 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
#include-once
12
#include <GUIConstants.au3>
13
 
14
Func EnvLocal($scope)
15
 
16
  Local $envloc = "HKCU\Environment"
17
  If $scope = "System" Then
18
    $envloc = "HKLM\System\ControlSet001\Control\Session Manager\Environment"
19
  EndIf
20
  return $envloc
21
Endfunc
22
 
23
Func updatePath(ByRef $inpubox) 
24
    Local $text = FileSelectFolder ( "Select folder", "" , 1 )
25
 
26
    If $text <> "" Then
27
      GUICtrlSetData($inpubox, $text)
28
    EndIf
29
EndFunc
30
 
31
Func installLibs($GELpath, $scope)
32
 
33
  $envloc = EnvLocal($scope)
34
 
35
  RegWrite($envloc,"GEL_INCLUDE","REG_EXPAND_SZ",$GELPath & "\include")
36
  RegWrite($envloc,"GEL_LIB","REG_EXPAND_SZ",$GELPath & "\lib")
37
  RegWrite($envloc,"GEL_BIN","REG_EXPAND_SZ",$GELPath & "\bin")
38
 
39
  $Path = RegREad($envloc,"Path")
40
  RegWrite($envloc,"Path","REG_EXPAND_SZ",$Path & ";" & "%GEL_BIN%")
41
  MsgBox(0,"Info","Added " & $GELpath & " to path",5)
42
 
43
EndFunc
44
 
45
Func makeSolution($GELpath, $msvcVer, $libType, $scope)
46
 
47
  $envloc = EnvLocal($scope)
48
 
49
 
50
 
51
 
52
EndFunc
53
 
54
 
55
 
56