3 ; Microsoft runtime CRT
4 ; Uncomment exactly ONE of the sections below
6 ; !define VS_RUNTIME_DLL ""
7 ; !define VS_RUNTIME_MANIFEST ""
10 ; !define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
11 ;!define VS_RUNTIME_MANIFEST ""
14 ;!define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
15 ;!define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest"
18 !define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\msvc*90.dll"
19 !define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest"
26 Caption "Index Data Zebra ${VERSION} Setup"
27 OutFile "idzebra_${VERSION}.exe"
29 LicenseText "You must read the following license before installing:"
30 LicenseData license.txt
32 ComponentText "This will install Zebra on your computer:"
33 InstType "Full (w/ Source)"
34 InstType "Lite (w/o Source)"
36 InstallDir "$PROGRAMFILES\Zebra"
37 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
39 ;--------------------------------
42 !insertmacro MUI_PAGE_LICENSE "license.txt"
43 !insertmacro MUI_PAGE_COMPONENTS
44 !insertmacro MUI_PAGE_DIRECTORY
45 !insertmacro MUI_PAGE_INSTFILES
47 !insertmacro MUI_UNPAGE_CONFIRM
48 !insertmacro MUI_UNPAGE_INSTFILES
53 ; UninstPage uninstConfirm
54 ; UninstPage instfiles
56 ;--------------------------------
59 !insertmacro MUI_LANGUAGE "English"
61 ;--------------------------------
62 Section "" ; (default section)
64 ; add files / whatever that need to be installed here.
65 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
66 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
67 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
68 ; write out uninstaller
69 WriteUninstaller "$INSTDIR\uninst.exe"
70 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
71 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
73 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
74 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
75 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
82 SectionEnd ; end of default section
84 Section "Zebra Runtime"
86 SetOutPath $INSTDIR\bin
87 File "${VS_RUNTIME_DLL}"
88 File "${VS_RUNTIME_MANIFEST}"
90 File ..\bin\idzebra.dll
93 File ..\bin\libxml2.dll
94 File ..\bin\libxslt.dll
97 File ..\bin\libexpat.dll
100 Section "Zebra Development"
102 SetOutPath $INSTDIR\include
104 SetOutPath $INSTDIR\include\idzebra
105 File ..\include\idzebra\*.h
106 SetOutPath $INSTDIR\lib
110 Section "Zebra Documentation"
112 SetOutPath $INSTDIR\doc
113 File /r ..\doc\*.html
117 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
118 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
119 "$INSTDIR\doc\index.html"
122 Section "Zebra Examples"
128 File /r /x *.mf /x *.LCK ..\examples
131 Section "Zebra Source"
133 SetOutPath $INSTDIR\util
135 SetOutPath $INSTDIR\dfa
138 SetOutPath $INSTDIR\index
141 SetOutPath $INSTDIR\isams
143 SetOutPath $INSTDIR\isamc
146 SetOutPath $INSTDIR\isamb
148 SetOutPath $INSTDIR\data1
150 SetOutPath $INSTDIR\dict
153 SetOutPath $INSTDIR\bfile
156 SetOutPath $INSTDIR\rset
158 SetOutPath $INSTDIR\test\api
160 File ..\test\api\*.cfg
161 SetOutPath $INSTDIR\win
167 ; begin uninstall settings/section
168 UninstallText "This will uninstall Zebra ${VERSION} from your system"
171 ; add delete commands to delete whatever files/registry keys/etc you installed here.
172 Delete "$INSTDIR\uninst.exe"
173 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
174 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
175 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
176 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
178 IfFileExists $INSTDIR 0 Removed
179 MessageBox MB_OK|MB_ICONEXCLAMATION \
180 "Note: $INSTDIR could not be removed."