1 ; $Id: zebra.nsi,v 1.27 2005-08-25 12:53:42 adam Exp $
3 !define VERSION "1.4.0"
4 !define VS_RUNTIME_LOCATION "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin"
11 Caption "Index Data Zebra ${VERSION} Setup"
12 OutFile "idzebra_${VERSION}.exe"
14 LicenseText "You must read the following license before installing:"
15 LicenseData license.txt
17 ComponentText "This will install Zebra on your computer:"
18 InstType "Full (w/ Source)"
19 InstType "Lite (w/o Source)"
21 InstallDir "$PROGRAMFILES\Zebra"
22 InstallDirRegKey HKLM "SOFTWARE\Index Data\Zebra" ""
24 ;--------------------------------
27 !insertmacro MUI_PAGE_LICENSE "license.txt"
28 !insertmacro MUI_PAGE_COMPONENTS
29 !insertmacro MUI_PAGE_DIRECTORY
30 !insertmacro MUI_PAGE_INSTFILES
32 !insertmacro MUI_UNPAGE_CONFIRM
33 !insertmacro MUI_UNPAGE_INSTFILES
38 ; UninstPage uninstConfirm
39 ; UninstPage instfiles
41 ;--------------------------------
44 !insertmacro MUI_LANGUAGE "English"
46 ;--------------------------------
47 Section "" ; (default section)
49 ; add files / whatever that need to be installed here.
50 WriteRegStr HKLM "SOFTWARE\Index Data\Zebra" "" "$INSTDIR"
51 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "DisplayName" "Zebra ${VERSION} (remove only)"
52 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Zebra" "UninstallString" '"$INSTDIR\uninst.exe"'
53 ; write out uninstaller
54 WriteUninstaller "$INSTDIR\uninst.exe"
55 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
56 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Zebra Program Directory.lnk" \
58 WriteINIStr "$SMPROGRAMS\Index Data\Zebra\Zebra Home page.url" \
59 "InternetShortcut" "URL" "http://www.indexdata.dk/zebra/"
60 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\Uninstall Zebra.lnk" \
67 SectionEnd ; end of default section
69 Section "Zebra Runtime"
71 SetOutPath $INSTDIR\bin
75 File ..\bin\libxml2.dll
77 File ..\bin\libexpat.dll
78 File "${VS_RUNTIME_LOCATION}\msvcr71.dll"
81 Section "Zebra Development"
83 SetOutPath $INSTDIR\include
85 SetOutPath $INSTDIR\include\idzebra
86 File ..\include\idzebra\*.h
87 SetOutPath $INSTDIR\lib
91 Section "Zebra Documentation"
93 SetOutPath $INSTDIR\doc
100 SetOutPath "$SMPROGRAMS\Index Data\Zebra\"
101 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\HTML Documentation.lnk" \
102 "$INSTDIR\doc\zebra.html"
103 CreateShortCut "$SMPROGRAMS\Index Data\Zebra\PDF Documentaion.lnk" \
104 "$INSTDIR\doc\zebra.pdf"
107 Section "Zebra Examples"
116 Section "Zebra Source"
118 SetOutPath $INSTDIR\util
120 SetOutPath $INSTDIR\dfa
123 SetOutPath $INSTDIR\index
126 SetOutPath $INSTDIR\isams
128 SetOutPath $INSTDIR\isamc
131 SetOutPath $INSTDIR\isamb
133 SetOutPath $INSTDIR\data1
135 SetOutPath $INSTDIR\recctrl
138 SetOutPath $INSTDIR\dict
141 SetOutPath $INSTDIR\bfile
144 SetOutPath $INSTDIR\rset
146 SetOutPath $INSTDIR\test\api
148 File ..\test\api\*.cfg
149 SetOutPath $INSTDIR\win
155 ; begin uninstall settings/section
156 UninstallText "This will uninstall Zebra ${VERSION} from your system"
159 ; add delete commands to delete whatever files/registry keys/etc you installed here.
160 Delete "$INSTDIR\uninst.exe"
161 DeleteRegKey HKLM "SOFTWARE\Index Data\Zebra"
162 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Zebra"
163 ExecWait '"$INSTDIR\bin\zebrasrv" -remove'
164 RMDir /r "$SMPROGRAMS\Index Data\Zebra"
166 IfFileExists $INSTDIR 0 Removed
167 MessageBox MB_OK|MB_ICONEXCLAMATION \
168 "Note: $INSTDIR could not be removed."