Subversion Repositories gelsvn

Rev

Rev 241 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 241 Rev 242
Line 1... Line 1...
1
!include "LogicLib.nsh" 
1
!include "LogicLib.nsh" 
-
 
2
!include "WinMessages.NSH"
-
 
3
 
2
; The name of the installer
4
; The name of the installer
3
Name "GEL Externals"
5
Name "GEL Externals"
4
 
6
 
5
; The file to write
7
; The file to write
6
OutFile "GELexternals.exe"
8
OutFile "GELexternals.exe"
Line 59... Line 61...
59
 
61
 
60
    SetOutPath $INSTDIR
62
    SetOutPath $INSTDIR
61
    File /r current\include
63
    File /r current\include
62
  ${EndIf}
64
  ${EndIf}
63
 
65
 
-
 
66
  # Create Environment variables
64
WriteRegExpandStr HKCU "Environment" "GEL_INCLUDE" "$INSTDIR\include"
67
  WriteRegExpandStr HKCU "Environment" "GEL_INCLUDE" "$INSTDIR\include"
65
WriteRegExpandStr HKCU "Environment" "GEL_LIB" "$INSTDIR\lib"
68
  WriteRegExpandStr HKCU "Environment" "GEL_LIB" "$INSTDIR\lib"
66
WriteRegExpandStr HKCU "Environment" "GEL_BIN" "$INSTDIR\bin"
69
  WriteRegExpandStr HKCU "Environment" "GEL_BIN" "$INSTDIR\bin"
-
 
70
 
-
 
71
  # Add %GEL_BIN% to path
-
 
72
  ReadRegStr $1 HKCU "Environment" "PATH"
-
 
73
  StrCpy $2 $1 1 -1 # copy last char
-
 
74
  StrCmp $2 ";" 0 +2 # if last char == ;
-
 
75
    StrCpy $1 $1 -1 # remove last char
-
 
76
  StrCmp $1 "" AddToPath_NTdoIt
-
 
77
    StrCpy $0 "$1;%GEL_BIN%"
-
 
78
  AddToPath_NTdoIt:
-
 
79
    WriteRegExpandStr HKCU "Environment" "PATH" $0
-
 
80
    SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
67
 
81
 
68
 
82
 
69
SectionEnd ; end the section
83
SectionEnd ; end the section