1 ; $Id: zebra.nsi,v 1.30 2006-06-07 14:37:37 adam Exp $
3 !define VERSION "1.4.0"
5 ; Microsoft runtime CRT
7 ; !define VS_RUNTIME "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
10 !define VS_RUNTIME "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
17 Caption "Index Data Zebra ${VERSION} Setup"
18 OutFile "idzebra_${VERSION}.exe"
20 LicenseText "You must read the following license before installing:"
21 LicenseData license.txt
23 ComponentText "This will install Zebra on your computer:"
24 InstType "Full (w/ Source)"
25 InstType "Lite (w/o Source)"
27 InstallDir "$PROGRAMFILES\Zebra"
28 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
30 ;--------------------------------
33 !insertmacro MUI_PAGE_LICENSE "license.txt"
34 !insertmacro MUI_PAGE_COMPONENTS
35 !insertmacro MUI_PAGE_DIRECTORY
36 !insertmacro MUI_PAGE_INSTFILES
38 !insertmacro MUI_UNPAGE_CONFIRM
39 !insertmacro MUI_UNPAGE_INSTFILES
44 ; UninstPage uninstConfirm
45 ; UninstPage instfiles
47 ;--------------------------------
50 !insertmacro MUI_LANGUAGE "English"
52 ;--------------------------------
53 Section "" ; (default section)
55 ; add files / whatever that need to be installed here.
56 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
57 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
58 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
59 ; write out uninstaller
60 WriteUninstaller "$INSTDIR\uninst.exe"
61 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
62 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
64 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
65 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
66 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
73 SectionEnd ; end of default section
75 Section "Zebra Runtime"
77 SetOutPath $INSTDIR\bin
79 File ..\bin\*.manifest
80 File ..\bin\idzebra.dll
83 File ..\bin\libxml2.dll
84 File ..\bin\libxslt.dll
86 File ..\bin\libexpat.dll
90 Section "Zebra Development"
92 SetOutPath $INSTDIR\include
94 SetOutPath $INSTDIR\include\idzebra
95 File ..\include\idzebra\*.h
96 SetOutPath $INSTDIR\lib
100 Section "Zebra Documentation"
102 SetOutPath $INSTDIR\doc
103 File /r ..\doc\*.html
107 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
108 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
109 "$INSTDIR\doc\index.html"
112 Section "Zebra Examples"
118 File /r /x *.mf /x *.LCK ..\examples
121 Section "Zebra Source"
123 SetOutPath $INSTDIR\util
125 SetOutPath $INSTDIR\dfa
128 SetOutPath $INSTDIR\index
131 SetOutPath $INSTDIR\isams
133 SetOutPath $INSTDIR\isamc
136 SetOutPath $INSTDIR\isamb
138 SetOutPath $INSTDIR\data1
140 SetOutPath $INSTDIR\recctrl
143 SetOutPath $INSTDIR\dict
146 SetOutPath $INSTDIR\bfile
149 SetOutPath $INSTDIR\rset
151 SetOutPath $INSTDIR\test\api
153 File ..\test\api\*.cfg
154 SetOutPath $INSTDIR\win
160 ; begin uninstall settings/section
161 UninstallText "This will uninstall Zebra ${VERSION} from your system"
164 ; add delete commands to delete whatever files/registry keys/etc you installed here.
165 Delete "$INSTDIR\uninst.exe"
166 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
167 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
168 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
169 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
171 IfFileExists $INSTDIR 0 Removed
172 MessageBox MB_OK|MB_ICONEXCLAMATION \
173 "Note: $INSTDIR could not be removed."