1 ; This file is part of the YAZ toolkit.
2 ; Copyright (C) 1995-2009 Index Data
6 ; Microsoft runtime CRT
7 ; Uncomment exactly ONE section of the three below
9 !define VS_RUNTIME_DLL ""
10 !define VS_RUNTIME_MANIFEST ""
13 ; !define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\msvcr71.dll"
14 ;!define VS_RUNTIME_MANIFEST ""
17 ;!define VS_RUNTIME_DLL "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\msvcr80.dll"
18 ;!define VS_RUNTIME_MANIFEST "c:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT\Microsoft.VC80.CRT.manifest"
26 Caption "Index Data YAZ ${VERSION} Setup"
27 OutFile "yaz_${VERSION}.exe"
29 LicenseText "You must read the following license before installing:"
30 LicenseData license.txt
32 ComponentText "This will install the YAZ Toolkit on your computer:"
33 InstType "Full (w/ Source)"
34 InstType "Lite (w/o Source)"
36 InstallDir "$PROGRAMFILES\YAZ"
37 InstallDirRegKey HKLM "SOFTWARE\Index Data\YAZ" ""
40 ;----------------------------
44 !insertmacro MUI_PAGE_LICENSE "license.txt"
45 !insertmacro MUI_PAGE_COMPONENTS
46 !insertmacro MUI_PAGE_DIRECTORY
47 !insertmacro MUI_PAGE_INSTFILES
49 !insertmacro MUI_UNPAGE_CONFIRM
50 !insertmacro MUI_UNPAGE_INSTFILES
55 ; UninstPage uninstConfirm
56 ; UninstPage instfiles
58 ;--------------------------------
61 !insertmacro MUI_LANGUAGE "English"
63 ;--------------------------------
65 Section "" ; (default section)
67 ; add files / whatever that need to be installed here.
68 WriteRegStr HKLM "SOFTWARE\Index Data\YAZ" "" "$INSTDIR"
69 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YAZ" "DisplayName" "YAZ ${VERSION} (remove only)"
70 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\YAZ" "UninstallString" '"$INSTDIR\uninst.exe"'
71 ; write out uninstaller
72 WriteUninstaller "$INSTDIR\uninst.exe"
73 SetOutPath $SMPROGRAMS\YAZ
74 CreateShortCut "$SMPROGRAMS\YAZ\YAZ Program Directory.lnk" \
76 WriteINIStr "$SMPROGRAMS\YAZ\YAZ Home page.url" \
77 "InternetShortcut" "URL" "http://www.indexdata.dk/yaz/"
78 CreateShortCut "$SMPROGRAMS\YAZ\Uninstall YAZ.lnk" \
85 SetOutPath $INSTDIR\ztest
86 File ..\ztest\dummy-records
87 File ..\ztest\dummy-grs
88 File ..\ztest\dummy-words
89 SetOutPath $INSTDIR\etc
92 File ..\etc\pqf.properties
94 SectionEnd ; end of default section
96 Section "YAZ Runtime" YAZ_Runtime
98 IfFileExists "$INSTDIR\bin\yaz-ztest.exe" 0 Noservice
99 ExecWait '"$INSTDIR\bin\yaz-ztest.exe" -remove'
101 SetOutPath $INSTDIR\bin
102 File "${VS_RUNTIME_DLL}"
103 File "${VS_RUNTIME_MANIFEST}"
104 File ..\bin\iconv.dll
105 File ..\bin\zlib1.dll
106 File ..\bin\libxml2.dll
107 File ..\bin\libxslt.dll
110 File ..\bin\yaz_icu3.dll
112 SetOutPath $SMPROGRAMS\YAZ
113 CreateShortCut "$SMPROGRAMS\YAZ\YAZ Client.lnk" \
114 "$INSTDIR\bin\yaz-client.exe"
115 SetOutPath $SMPROGRAMS\YAZ\Server
116 CreateShortCut "$SMPROGRAMS\YAZ\Server\Server on console on port 9999.lnk" \
117 "$INSTDIR\bin\yaz-ztest.exe" '-w"$INSTDIR\ztest"'
118 CreateShortCut "$SMPROGRAMS\YAZ\Server\Install Z39.50 service on port 210.lnk" \
119 "$INSTDIR\bin\yaz-ztest.exe" '-installa tcp:@:210'
120 CreateShortCut "$SMPROGRAMS\YAZ\Server\Remove Z39.50 service.lnk" \
121 "$INSTDIR\bin\yaz-ztest.exe" '-remove'
124 Section "YAZ Development" YAZ_Development
126 SetOutPath $INSTDIR\include\yaz
127 File ..\include\yaz\*.h
128 SetOutPath $INSTDIR\lib
132 Section "YAZ Documentation" YAZ_Documentation
134 SetOutPath $INSTDIR\doc
137 File /r ..\doc\*.html
141 SetOutPath $SMPROGRAMS\YAZ
142 CreateShortCut "$SMPROGRAMS\YAZ\HTML Documentation.lnk" \
143 "$INSTDIR\doc\index.html"
146 Section "YAZ Source" YAZ_Source
150 File /r /x yaz ..\*.h
151 SetOutPath $INSTDIR\util
152 File ..\util\yaz-asncomp
153 SetOutPath $INSTDIR\src
158 File ..\src\codetables*.xml
159 SetOutPath $INSTDIR\test
164 SetOutPath $INSTDIR\win
170 ; begin uninstall settings/section
171 UninstallText "This will uninstall YAZ ${VERSION} from your system"
174 ; add delete commands to delete whatever files/registry keys/etc you installed here.
175 Delete "$INSTDIR\uninst.exe"
176 DeleteRegKey HKLM "SOFTWARE\Index Data\YAZ"
177 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YAZ"
178 ExecWait '"$INSTDIR\bin\yaz-ztest" -remove'
179 RMDir /r $SMPROGRAMS\YAZ
181 IfFileExists $INSTDIR 0 Removed
182 MessageBox MB_OK|MB_ICONEXCLAMATION \
183 "Note: $INSTDIR could not be removed."
187 ;--------------------------------
191 LangString DESC_YAZ_Runtime ${LANG_ENGLISH} "YAZ runtime files needed in order for YAZ to run, such as DLLs."
192 LangString DESC_YAZ_Development ${LANG_ENGLISH} "Header files and import libraries required for developing software using YAZ."
193 LangString DESC_YAZ_Documentation ${LANG_ENGLISH} "YAZ Users' guide and reference in HTML. Describes both YAZ applications and the API."
194 LangString DESC_YAZ_Source ${LANG_ENGLISH} "Source code of YAZ. Required if you need to rebuild YAZ (for debugging purposes)."
196 ;Assign language strings to sections
197 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
198 !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Runtime} $(DESC_YAZ_Runtime)
199 !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Development} $(DESC_YAZ_Development)
200 !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Documentation} $(DESC_YAZ_Documentation)
201 !insertmacro MUI_DESCRIPTION_TEXT ${YAZ_Source} $(DESC_YAZ_Source)
202 !insertmacro MUI_FUNCTION_DESCRIPTION_END