Subversion Repositories gelsvn

Rev

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

Rev Author Line No. Line
239 bj 1
!include "LogicLib.nsh" 
2
; The name of the installer
3
Name "GEL Externals"
4
 
5
; The file to write
6
OutFile "GELexternals.exe"
7
 
8
; The default installation directory
9
InstallDir $DESKTOP\test
10
 
11
;--------------------------------
12
 
13
; Pages
14
 
15
Page directory
16
Page components
17
 
18
InstType "full"
19
InstType "minimal"
20
 
21
Section "Externals" Externals
22
SectionIn 1 2
23
SectionEnd
24
 
25
Section "GEL binary (ver. 0.1)" GEL
26
SectionIn 1
27
SectionEnd
28
 
29
 
30
 
31
Page instfiles
32
 
33
;--------------------------------
34
 
35
Section ""
36
 
37
  # Get flags of first section (which is index #0) into register $0
38
  SectionGetFlags ${Externals} $0
39
 
40
# Get flags of second section (which is index #1) into register $1
41
  SectionGetFlags ${GEL} $1
42
 
43
  MessageBox MB_OK "Externals: $0 $\r$\n GEL: $1 $\r$\n "
44
 
45
  ${If} $0 = 1
46
    SetOutPath $INSTDIR\bin
47
    File externals\bin\*.dll 
48
 
49
    SetOutPath $INSTDIR\lib
50
    File externals\lib\*.lib 
51
 
52
    SetOutPath $INSTDIR
53
    File /r externals\include
54
  ${EndIf}
55
 
56
  ${If} $1 = 1
57
    SetOutPath $INSTDIR\lib
58
    File current\lib\*.lib 
59
 
60
    SetOutPath $INSTDIR
61
    File /r current\include
62
  ${EndIf}
63
 
64
WriteRegExpandStr HKCU "Environment" "GEL_INCLUDE" "$INSTDIR\include"
65
WriteRegExpandStr HKCU "Environment" "GEL_LIB" "$INSTDIR\lib"
66
WriteRegExpandStr HKCU "Environment" "GEL_BIN" "$INSTDIR\bin"
67
 
68
 
69
SectionEnd ; end the section