1 ; $Id: zebra.nsi,v 1.20.2.13 2005-10-27 17:39:10 adam Exp $
3 !define VERSION "1.3.30"
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 ..\bin\idzebra.dll
78 File c:\winnt\system32\msvcr71.dll
81 Section "Zebra Development"
83 SetOutPath $INSTDIR\include
85 SetOutPath $INSTDIR\lib
89 Section "Zebra Documentation"
91 SetOutPath $INSTDIR\doc
98 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
99 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
100 "$INSTDIR\doc\zebra.html"
101 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
102 "$INSTDIR\doc\zebra.pdf"
105 Section "Zebra Examples"
114 Section "Zebra Source"
116 SetOutPath $INSTDIR\util
118 SetOutPath $INSTDIR\dfa
121 SetOutPath $INSTDIR\index
124 SetOutPath $INSTDIR\isams
126 SetOutPath $INSTDIR\isam
129 SetOutPath $INSTDIR\isamc
132 SetOutPath $INSTDIR\isamb
134 SetOutPath $INSTDIR\data1
136 SetOutPath $INSTDIR\recctrl
139 SetOutPath $INSTDIR\dict
141 SetOutPath $INSTDIR\bfile
144 SetOutPath $INSTDIR\rset
146 SetOutPath $INSTDIR\test\api
148 File ..\test\api\*.cfg
149 SetOutPath $INSTDIR\win
155 ; begin uninstall settings/section
156 UninstallText "This will uninstall Zebra ${VERSION} from your system"
159 ; add delete commands to delete whatever files/registry keys/etc you installed here.
160 Delete "$INSTDIR\uninst.exe"
161 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
162 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
163 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
164 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
166 IfFileExists $INSTDIR 0 Removed
167 MessageBox MB_OK|MB_ICONEXCLAMATION \
168 "Note: $INSTDIR could not be removed."