1 ; $Id: zebra.nsi,v 1.36 2006-10-16 11:03:48 adam Exp $
3 !define VERSION "2.0.4"
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"
10 !define VS_RUNTIME_DLL "c:\Program files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.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
78 File "${VS_RUNTIME_DLL}"
79 ; File "${VS_RUNTIME_MANIFEST}"
81 ; File ..\bin\*.manifest
82 File ..\bin\idzebra.dll
85 File ..\bin\libxml2.dll
86 File ..\bin\libxslt.dll
88 File ..\bin\libexpat.dll
91 Section "Zebra Development"
93 SetOutPath $INSTDIR\include
95 SetOutPath $INSTDIR\include\idzebra
96 File ..\include\idzebra\*.h
97 SetOutPath $INSTDIR\lib
101 Section "Zebra Documentation"
103 SetOutPath $INSTDIR\doc
104 File /r ..\doc\*.html
108 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
109 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
110 "$INSTDIR\doc\index.html"
113 Section "Zebra Examples"
119 File /r /x *.mf /x *.LCK ..\examples
122 Section "Zebra Source"
124 SetOutPath $INSTDIR\util
126 SetOutPath $INSTDIR\dfa
129 SetOutPath $INSTDIR\index
132 SetOutPath $INSTDIR\isams
134 SetOutPath $INSTDIR\isamc
137 SetOutPath $INSTDIR\isamb
139 SetOutPath $INSTDIR\data1
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."