1 ; $Id: zebra.nsi,v 1.50 2008-03-05 09:29:10 adam Exp $
3 !define VERSION "2.0.32"
6 ; !define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
7 ; !define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest"
10 ; !define VS_RUNTIME_DLL "c:\Program files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
20 Caption "Index Data Zebra ${VERSION} Setup"
21 OutFile "idzebra_${VERSION}.exe"
23 LicenseText "You must read the following license before installing:"
24 LicenseData license.txt
26 ComponentText "This will install Zebra on your computer:"
27 InstType "Full (w/ Source)"
28 InstType "Lite (w/o Source)"
30 InstallDir "$PROGRAMFILES\Zebra"
31 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
33 ;--------------------------------
36 !insertmacro MUI_PAGE_LICENSE "license.txt"
37 !insertmacro MUI_PAGE_COMPONENTS
38 !insertmacro MUI_PAGE_DIRECTORY
39 !insertmacro MUI_PAGE_INSTFILES
41 !insertmacro MUI_UNPAGE_CONFIRM
42 !insertmacro MUI_UNPAGE_INSTFILES
47 ; UninstPage uninstConfirm
48 ; UninstPage instfiles
50 ;--------------------------------
53 !insertmacro MUI_LANGUAGE "English"
55 ;--------------------------------
56 Section "" ; (default section)
58 ; add files / whatever that need to be installed here.
59 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
60 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
61 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
62 ; write out uninstaller
63 WriteUninstaller "$INSTDIR\uninst.exe"
64 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
65 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
67 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
68 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
69 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
76 SectionEnd ; end of default section
78 Section "Zebra Runtime"
80 SetOutPath $INSTDIR\bin
82 File "${VS_RUNTIME_DLL}"
84 !ifdef VS_RUNTIME_MANIFEST
85 File "${VS_RUNTIME_MANIFEST}"
86 File ..\bin\*.manifest
89 File ..\bin\idzebra.dll
92 File ..\bin\libxml2.dll
93 File ..\bin\libxslt.dll
95 File ..\bin\libexpat.dll
96 File ..\bin\icudt38.dll
97 File ..\bin\icuin38.dll
98 File ..\bin\icuuc38.dll
99 File ..\bin\yaz_icu3.dll
102 Section "Zebra Development"
104 SetOutPath $INSTDIR\include
106 SetOutPath $INSTDIR\include\idzebra
107 File ..\include\idzebra\*.h
108 SetOutPath $INSTDIR\lib
112 Section "Zebra Documentation"
114 SetOutPath $INSTDIR\doc
115 File /r ..\doc\*.html
119 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
120 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
121 "$INSTDIR\doc\index.html"
124 Section "Zebra Examples"
130 File /r /x *.mf /x *.LCK ..\examples
133 Section "Zebra Source"
135 SetOutPath $INSTDIR\util
137 SetOutPath $INSTDIR\dfa
140 SetOutPath $INSTDIR\index
143 SetOutPath $INSTDIR\isams
145 SetOutPath $INSTDIR\isamc
148 SetOutPath $INSTDIR\isamb
150 SetOutPath $INSTDIR\data1
152 SetOutPath $INSTDIR\dict
155 SetOutPath $INSTDIR\bfile
158 SetOutPath $INSTDIR\rset
160 SetOutPath $INSTDIR\test\api
162 File ..\test\api\*.cfg
163 SetOutPath $INSTDIR\win
169 ; begin uninstall settings/section
170 UninstallText "This will uninstall Zebra ${VERSION} from your system"
173 ; add delete commands to delete whatever files/registry keys/etc you installed here.
174 Delete "$INSTDIR\uninst.exe"
175 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
176 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
177 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
178 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
180 IfFileExists $INSTDIR 0 Removed
181 MessageBox MB_OK|MB_ICONEXCLAMATION \
182 "Note: $INSTDIR could not be removed."