1 ; $Id: zebra.nsi,v 1.20.2.3 2004-08-19 12:51:28 adam Exp $
3 !define VERSION "1.3.17"
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
71 File c:\winnt\system32\msvcr71.dll
74 Section "Zebra Development"
76 SetOutPath $INSTDIR\include
78 SetOutPath $INSTDIR\lib
82 Section "Zebra Documentation"
84 SetOutPath $INSTDIR\doc
91 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
92 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
93 "$INSTDIR\doc\zebra.html"
94 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
95 "$INSTDIR\doc\zebra.pdf"
98 Section "Zebra Examples"
107 Section "Zebra Source"
109 SetOutPath $INSTDIR\util
111 SetOutPath $INSTDIR\dfa
114 SetOutPath $INSTDIR\index
117 SetOutPath $INSTDIR\isams
119 SetOutPath $INSTDIR\isam
122 SetOutPath $INSTDIR\isamc
125 SetOutPath $INSTDIR\isamb
127 SetOutPath $INSTDIR\data1
129 SetOutPath $INSTDIR\recctrl
132 SetOutPath $INSTDIR\dict
134 SetOutPath $INSTDIR\bfile
137 SetOutPath $INSTDIR\rset
139 SetOutPath $INSTDIR\test\api
141 File ..\test\api\*.cfg
142 SetOutPath $INSTDIR\win
148 ; begin uninstall settings/section
149 UninstallText "This will uninstall Zebra ${VERSION} from your system"
152 ; add delete commands to delete whatever files/registry keys/etc you installed here.
153 Delete "$INSTDIR\uninst.exe"
154 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
155 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
156 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
157 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
159 IfFileExists $INSTDIR 0 Removed
160 MessageBox MB_OK|MB_ICONEXCLAMATION \
161 "Note: $INSTDIR could not be removed."