1 ; $Id: zebra.nsi,v 1.17 2003-09-22 12:35:58 adam Exp $
3 !define VERSION "1.3.13"
6 Caption "Index Data Yebra ${VERSION} Setup"
7 OutFile "idzebra_${VERSION}.exe"
9 LicenseText "You must read the following license before installing:"
10 LicenseData license.txt
12 ComponentText "This will install Zebra on your computer:"
13 InstType "Full (w/ Source)"
14 InstType "Lite (w/o Source)"
16 ; Some default compiler settings (uncomment and change at will):
17 ; SetCompress auto ; (can be off or force)
18 ; SetDatablockOptimize on ; (can be off)
19 ; CRCCheck on ; (can be off)
20 ; AutoCloseWindow false ; (can be true for the window go away automatically at end)
21 ; ShowInstDetails hide ; (can be show to have them shown, or nevershow to disable)
22 ; SetDateSave off ; (can be on to have files restored to their orginal date)
24 InstallDir "$PROGRAMFILES\Zebra"
25 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
26 DirShow show ; (make this hide to not let the user change it)
27 DirText "Select the directory to install Zebra in:"
29 Section "" ; (default section)
31 ; add files / whatever that need to be installed here.
32 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
33 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
34 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
35 ; write out uninstaller
36 WriteUninstaller "$INSTDIR\uninst.exe"
37 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
38 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
40 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
41 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
42 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
49 SectionEnd ; end of default section
51 Section "Zebra Runtime"
53 SetOutPath $INSTDIR\bin
58 Section "Zebra Development"
60 SetOutPath $INSTDIR\include
62 SetOutPath $INSTDIR\lib
66 Section "Zebra Documentation"
70 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
71 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
72 "$INSTDIR\doc\zebra.html"
73 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
74 "$INSTDIR\doc\zebra.pdf"
77 Section "Zebra Examples"
86 Section "Zebra Source"
88 SetOutPath $INSTDIR\util
90 SetOutPath $INSTDIR\dfa
93 SetOutPath $INSTDIR\index
96 SetOutPath $INSTDIR\isams
98 SetOutPath $INSTDIR\isam
101 SetOutPath $INSTDIR\isamc
104 SetOutPath $INSTDIR\isamb
106 SetOutPath $INSTDIR\data1
108 SetOutPath $INSTDIR\recctrl
111 SetOutPath $INSTDIR\dict
113 SetOutPath $INSTDIR\bfile
116 SetOutPath $INSTDIR\rset
118 SetOutPath $INSTDIR\test\api
120 File ..\test\api\*.cfg
121 SetOutPath $INSTDIR\win
127 ; begin uninstall settings/section
128 UninstallText "This will uninstall Zebra ${VERSION} from your system"
131 ; add delete commands to delete whatever files/registry keys/etc you installed here.
132 Delete "$INSTDIR\uninst.exe"
133 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
134 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
135 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
136 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
138 IfFileExists $INSTDIR 0 Removed
139 MessageBox MB_OK|MB_ICONEXCLAMATION \
140 "Note: $INSTDIR could not be removed."