1 ; $Id: zebra.nsi,v 1.32 2006-06-26 15:11:44 marc Exp $
3 !define VERSION "2.0.0"
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"
14 Caption "Index Data Zebra ${VERSION} Setup"
15 OutFile "idzebra_${VERSION}.exe"
17 LicenseText "You must read the following license before installing:"
18 LicenseData license.txt
20 ComponentText "This will install Zebra on your computer:"
21 InstType "Full (w/ Source)"
22 InstType "Lite (w/o Source)"
24 InstallDir "$PROGRAMFILES\Zebra"
25 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
27 ;--------------------------------
30 !insertmacro MUI_PAGE_LICENSE "license.txt"
31 !insertmacro MUI_PAGE_COMPONENTS
32 !insertmacro MUI_PAGE_DIRECTORY
33 !insertmacro MUI_PAGE_INSTFILES
35 !insertmacro MUI_UNPAGE_CONFIRM
36 !insertmacro MUI_UNPAGE_INSTFILES
41 ; UninstPage uninstConfirm
42 ; UninstPage instfiles
44 ;--------------------------------
47 !insertmacro MUI_LANGUAGE "English"
49 ;--------------------------------
50 Section "" ; (default section)
52 ; add files / whatever that need to be installed here.
53 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
54 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
55 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
56 ; write out uninstaller
57 WriteUninstaller "$INSTDIR\uninst.exe"
58 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
59 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
61 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
62 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
63 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
70 SectionEnd ; end of default section
72 Section "Zebra Runtime"
74 SetOutPath $INSTDIR\bin
75 File "${VS_RUNTIME_DLL}"
76 File "${VS_RUNTIME_MANIFEST}"
78 File ..\bin\*.manifest
79 File ..\bin\idzebra.dll
82 File ..\bin\libxml2.dll
83 File ..\bin\libxslt.dll
85 File ..\bin\libexpat.dll
88 Section "Zebra Development"
90 SetOutPath $INSTDIR\include
92 SetOutPath $INSTDIR\include\idzebra
93 File ..\include\idzebra\*.h
94 SetOutPath $INSTDIR\lib
98 Section "Zebra Documentation"
100 SetOutPath $INSTDIR\doc
101 File /r ..\doc\*.html
105 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
106 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
107 "$INSTDIR\doc\index.html"
110 Section "Zebra Examples"
116 File /r /x *.mf /x *.LCK ..\examples
119 Section "Zebra Source"
121 SetOutPath $INSTDIR\util
123 SetOutPath $INSTDIR\dfa
126 SetOutPath $INSTDIR\index
129 SetOutPath $INSTDIR\isams
131 SetOutPath $INSTDIR\isamc
134 SetOutPath $INSTDIR\isamb
136 SetOutPath $INSTDIR\data1
138 SetOutPath $INSTDIR\recctrl
141 SetOutPath $INSTDIR\dict
144 SetOutPath $INSTDIR\bfile
147 SetOutPath $INSTDIR\rset
149 SetOutPath $INSTDIR\test\api
151 File ..\test\api\*.cfg
152 SetOutPath $INSTDIR\win
158 ; begin uninstall settings/section
159 UninstallText "This will uninstall Zebra ${VERSION} from your system"
162 ; add delete commands to delete whatever files/registry keys/etc you installed here.
163 Delete "$INSTDIR\uninst.exe"
164 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
165 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
166 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
167 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
169 IfFileExists $INSTDIR 0 Removed
170 MessageBox MB_OK|MB_ICONEXCLAMATION \
171 "Note: $INSTDIR could not be removed."