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"
22 !define VS_RUNTIME_DLL "c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\x86\Microsoft.VC120.CRT\msvc*.dll"
23 !define VS_RUNTIME_MANIFEST ""
30 Caption "Index Data Zebra ${VERSION} Setup"
31 OutFile "idzebra_${VERSION}.exe"
33 LicenseText "You must read the following license before installing:"
34 LicenseData license.txt
36 ComponentText "This will install Zebra on your computer:"
37 InstType "Full (w/ Source)"
38 InstType "Lite (w/o Source)"
40 InstallDir "$PROGRAMFILES\Zebra"
41 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
43 ;--------------------------------
46 !insertmacro MUI_PAGE_LICENSE "license.txt"
47 !insertmacro MUI_PAGE_COMPONENTS
48 !insertmacro MUI_PAGE_DIRECTORY
49 !insertmacro MUI_PAGE_INSTFILES
51 !insertmacro MUI_UNPAGE_CONFIRM
52 !insertmacro MUI_UNPAGE_INSTFILES
57 ; UninstPage uninstConfirm
58 ; UninstPage instfiles
60 ;--------------------------------
63 !insertmacro MUI_LANGUAGE "English"
65 ;--------------------------------
66 Section "" ; (default section)
68 ; add files / whatever that need to be installed here.
69 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
70 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
71 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
72 ; write out uninstaller
73 WriteUninstaller "$INSTDIR\uninst.exe"
74 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
75 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
77 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
78 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
79 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
86 SectionEnd ; end of default section
88 Section "Zebra Runtime"
90 SetOutPath $INSTDIR\bin
91 File "${VS_RUNTIME_DLL}"
92 !if "${VS_RUNTIME_MANIFEST}" != ""
93 File "${VS_RUNTIME_MANIFEST}"
96 File ..\bin\idzebra.dll
97 File ..\bin\libxml2.dll
98 File ..\bin\libxslt.dll
101 File ..\bin\libexpat.dll
104 Section "Zebra Development"
106 SetOutPath $INSTDIR\include
108 SetOutPath $INSTDIR\include\idzebra
109 File ..\include\idzebra\*.h
110 SetOutPath $INSTDIR\lib
114 Section "Zebra Documentation"
116 SetOutPath $INSTDIR\doc
117 File /r ..\doc\*.html
121 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
122 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
123 "$INSTDIR\doc\index.html"
126 Section "Zebra Examples"
132 File /r /x *.mf /x *.LCK ..\examples
135 Section "Zebra Source"
139 SetOutPath $INSTDIR\util
142 SetOutPath $INSTDIR\dfa
145 SetOutPath $INSTDIR\index
148 SetOutPath $INSTDIR\isams
150 SetOutPath $INSTDIR\isamc
153 SetOutPath $INSTDIR\isamb
155 SetOutPath $INSTDIR\data1
157 SetOutPath $INSTDIR\dict
160 SetOutPath $INSTDIR\bfile
163 SetOutPath $INSTDIR\rset
165 SetOutPath $INSTDIR\test\api
167 File ..\test\api\*.cfg
168 SetOutPath $INSTDIR\win
174 ; begin uninstall settings/section
175 UninstallText "This will uninstall Zebra ${VERSION} from your system"
178 ; add delete commands to delete whatever files/registry keys/etc you installed here.
179 Delete "$INSTDIR\uninst.exe"
180 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
181 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
182 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
183 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
185 IfFileExists $INSTDIR 0 Removed
186 MessageBox MB_OK|MB_ICONEXCLAMATION \
187 "Note: $INSTDIR could not be removed."