1 ; $Id: zebra.nsi,v 1.25 2004-12-08 12:23:10 adam Exp $
3 !define VERSION "1.4.0"
10 Caption "Index Data Zebra ${VERSION} Setup"
11 OutFile "idzebra_${VERSION}.exe"
13 LicenseText "You must read the following license before installing:"
14 LicenseData license.txt
16 ComponentText "This will install Zebra on your computer:"
17 InstType "Full (w/ Source)"
18 InstType "Lite (w/o Source)"
20 InstallDir "$PROGRAMFILES\Zebra"
21 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
23 ;--------------------------------
26 !insertmacro MUI_PAGE_LICENSE "license.txt"
27 !insertmacro MUI_PAGE_COMPONENTS
28 !insertmacro MUI_PAGE_DIRECTORY
29 !insertmacro MUI_PAGE_INSTFILES
31 !insertmacro MUI_UNPAGE_CONFIRM
32 !insertmacro MUI_UNPAGE_INSTFILES
37 ; UninstPage uninstConfirm
38 ; UninstPage instfiles
40 ;--------------------------------
43 !insertmacro MUI_LANGUAGE "English"
45 ;--------------------------------
46 Section "" ; (default section)
48 ; add files / whatever that need to be installed here.
49 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
50 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
51 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
52 ; write out uninstaller
53 WriteUninstaller "$INSTDIR\uninst.exe"
54 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
55 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
57 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
58 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
59 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
66 SectionEnd ; end of default section
68 Section "Zebra Runtime"
70 SetOutPath $INSTDIR\bin
74 File ..\bin\libxml2.dll
76 File ..\bin\libexpat.dll
77 File c:\winnt\system32\msvcr71.dll
80 Section "Zebra Development"
82 SetOutPath $INSTDIR\include
84 SetOutPath $INSTDIR\include\idzebra
85 File ..\include\idzebra\*.h
86 SetOutPath $INSTDIR\lib
90 Section "Zebra Documentation"
92 SetOutPath $INSTDIR\doc
99 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
100 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
101 "$INSTDIR\doc\zebra.html"
102 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
103 "$INSTDIR\doc\zebra.pdf"
106 Section "Zebra Examples"
115 Section "Zebra Source"
117 SetOutPath $INSTDIR\util
119 SetOutPath $INSTDIR\dfa
122 SetOutPath $INSTDIR\index
125 SetOutPath $INSTDIR\isams
127 SetOutPath $INSTDIR\isamc
130 SetOutPath $INSTDIR\isamb
132 SetOutPath $INSTDIR\data1
134 SetOutPath $INSTDIR\recctrl
137 SetOutPath $INSTDIR\dict
140 SetOutPath $INSTDIR\bfile
143 SetOutPath $INSTDIR\rset
145 SetOutPath $INSTDIR\test\api
147 File ..\test\api\*.cfg
148 SetOutPath $INSTDIR\win
154 ; begin uninstall settings/section
155 UninstallText "This will uninstall Zebra ${VERSION} from your system"
158 ; add delete commands to delete whatever files/registry keys/etc you installed here.
159 Delete "$INSTDIR\uninst.exe"
160 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
161 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
162 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
163 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
165 IfFileExists $INSTDIR 0 Removed
166 MessageBox MB_OK|MB_ICONEXCLAMATION \
167 "Note: $INSTDIR could not be removed."