1 ; $Id: zebra.nsi,v 1.29 2006-06-07 11:20:03 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
81 File ..\bin\libxml2.dll
83 File ..\bin\libexpat.dll
87 Section "Zebra Development"
89 SetOutPath $INSTDIR\include
91 SetOutPath $INSTDIR\include\idzebra
92 File ..\include\idzebra\*.h
93 SetOutPath $INSTDIR\lib
97 Section "Zebra Documentation"
99 SetOutPath $INSTDIR\doc
105 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
106 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
107 "$INSTDIR\doc\index.html"
110 Section "Zebra 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."