1 ; $Id: zebra.nsi,v 1.21 2004-08-06 09:38:23 adam Exp $
3 !define VERSION "1.4.0"
8 Caption "Index Data Zebra ${VERSION} Setup"
9 OutFile "idzebra_${VERSION}.exe"
11 LicenseText "You must read the following license before installing:"
12 LicenseData license.txt
14 ComponentText "This will install Zebra on your computer:"
15 InstType "Full (w/ Source)"
16 InstType "Lite (w/o Source)"
18 InstallDir "$PROGRAMFILES\Zebra"
19 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
21 ;--------------------------------
24 !insertmacro MUI_PAGE_LICENSE "license.txt"
25 !insertmacro MUI_PAGE_COMPONENTS
26 !insertmacro MUI_PAGE_DIRECTORY
27 !insertmacro MUI_PAGE_INSTFILES
29 !insertmacro MUI_UNPAGE_CONFIRM
30 !insertmacro MUI_UNPAGE_INSTFILES
35 ; UninstPage uninstConfirm
36 ; UninstPage instfiles
38 ;--------------------------------
41 !insertmacro MUI_LANGUAGE "English"
43 ;--------------------------------
44 Section "" ; (default section)
46 ; add files / whatever that need to be installed here.
47 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
48 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
49 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
50 ; write out uninstaller
51 WriteUninstaller "$INSTDIR\uninst.exe"
52 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
53 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
55 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
56 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
57 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
64 SectionEnd ; end of default section
66 Section "Zebra Runtime"
68 SetOutPath $INSTDIR\bin
73 Section "Zebra Development"
75 SetOutPath $INSTDIR\include
77 SetOutPath $INSTDIR\lib
81 Section "Zebra Documentation"
85 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
86 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
87 "$INSTDIR\doc\zebra.html"
88 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
89 "$INSTDIR\doc\zebra.pdf"
92 Section "Zebra Examples"
101 Section "Zebra Source"
103 SetOutPath $INSTDIR\util
105 SetOutPath $INSTDIR\dfa
108 SetOutPath $INSTDIR\index
111 SetOutPath $INSTDIR\isams
113 SetOutPath $INSTDIR\isam
116 SetOutPath $INSTDIR\isamc
119 SetOutPath $INSTDIR\isamb
121 SetOutPath $INSTDIR\data1
123 SetOutPath $INSTDIR\recctrl
126 SetOutPath $INSTDIR\dict
128 SetOutPath $INSTDIR\bfile
131 SetOutPath $INSTDIR\rset
133 SetOutPath $INSTDIR\test\api
135 File ..\test\api\*.cfg
136 SetOutPath $INSTDIR\win
142 ; begin uninstall settings/section
143 UninstallText "This will uninstall Zebra ${VERSION} from your system"
146 ; add delete commands to delete whatever files/registry keys/etc you installed here.
147 Delete "$INSTDIR\uninst.exe"
148 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
149 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
150 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
151 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
153 IfFileExists $INSTDIR 0 Removed
154 MessageBox MB_OK|MB_ICONEXCLAMATION \
155 "Note: $INSTDIR could not be removed."