2 ; OpenAFS Install Script for NSIS
3 ; This version compiles with NSIS v2.07
5 ; Originally written by Rob Murawski <rsm4@ieee.org>
7 ;Redistribution and use in source and binary forms, with or without modification, are permitted
8 ;provided that the following conditions are met:
10 ; Redistributions of source code must retain the above copyright notice, this list of conditions
11 ; and the following disclaimer. Redistributions in binary form must reproduce the above copyright
12 ; notice, this list of conditions and the following disclaimer in the documentation and/or other
13 ; materials provided with the distribution. The name of the author may not be used to endorse or
14 ; promote products derived from this software without specific prior written permission.
16 ; THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
17 ; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
18 ; PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19 ; INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20 ; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
21 ; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22 ; STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23 ; USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ; Some code originally based on:
27 ; NSIS Modern User Interface version 1.63
28 ; MultiLanguage Example Script
29 ; Written by Joost Verburg
31 ; Read in the environment information
32 !include ${INCLUDEDIR}\nsi-includes.nsi
36 Name "OpenAFS ${AFS_VERSION} ${__DATE__} ${__TIME__}"
38 Name "OpenAFS ${AFS_VERSION} ${__DATE__} ${__TIME__} Checked/Debug"
39 !endif ; End DEBUG/!DEBUG
42 Name "OpenAFS ${AFS_VERSION}"
44 Name "OpenAFS ${AFS_VERSION} Checked/Debug"
45 !endif ; End DEBUG/!DEBUG
47 VIProductVersion "${AFS_VERSION}.00"
48 VIAddVersionKey "ProductName" "OpenAFS"
49 VIAddVersionKey "CompanyName" "OpenAFS.org"
50 VIAddVersionKey "ProductVersion" ${AFS_VERSION}
51 VIAddVersionKey "FileVersion" ${AFS_VERSION}
52 VIAddVersionKey "FileDescription" "OpenAFS for Windows Installer"
53 VIAddVersionKey "LegalCopyright" "(C)2000-2007"
55 VIAddVersionKey "PrivateBuild" "Checked/Debug"
62 ;--------------------------------
65 !define REPLACEDLL_NOREGISTER
70 OutFile "${AFS_DESTDIR}\WinInstall\OpenAFSforWindows.exe"
72 OutFile "${AFS_DESTDIR}\WinInstall\OpenAFSforWindows-DEBUG.exe"
76 OutFile "${AFS_DESTDIR}\WinInstall\OpenAFSforWindows-IFS.exe"
78 OutFile "${AFS_DESTDIR}\WinInstall\OpenAFSforWindows-IFS-DEBUG.exe"
82 SetCompressor /solid lzma
83 !define MUI_ICON "..\..\client_config\OpenAFS.ico"
84 !define MUI_UNICON "..\..\client_config\OpenAFS.ico"
85 !define AFS_COMPANY_NAME "OpenAFS"
86 !define AFS_PRODUCT_NAME "OpenAFS"
87 !define AFS_REGKEY_ROOT "Software\TransarcCorporation"
88 !define NID_PLUGIN_MGR "Software\MIT\NetIDMgr\PluginManager"
91 ;Folder selection page
92 InstallDir "$PROGRAMFILES\OpenAFS" ; Install to shorter path
94 ;Remember install folder
95 InstallDirRegKey HKCU ${AFS_REGKEY_ROOT} ""
97 ;Remember the installer language
98 !define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
99 !define MUI_LANGDLL_REGISTRY_KEY ${AFS_REGKEY_ROOT}
100 !define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
102 ;Where are the files?
103 !define AFS_CLIENT_BUILDDIR "${AFS_DESTDIR}\root.client\usr\vice\etc"
104 !define AFS_WININSTALL_DIR "${AFS_DESTDIR}\WinInstall\Config"
105 !define AFS_BUILD_INCDIR "${AFS_DESTDIR}\include"
106 !define AFS_CLIENT_LIBDIR "${AFS_DESTDIR}\lib"
107 !define AFS_SERVER_BUILDDIR "${AFS_DESTDIR}\root.server\usr\afs\bin"
108 !define AFS_ETC_BUILDDIR "${AFS_DESTDIR}\etc"
109 !define SYSTEMDIR "$%SystemRoot%\System32"
111 ;--------------------------------
112 ;Modern UI Configuration
114 !define MUI_LICENSEPAGE
115 !define MUI_CUSTOMPAGECOMMANDS
116 !define MUI_WELCOMEPAGE
117 !define MUI_COMPONENTSPAGE
118 !define MUI_COMPONENTSPAGE_SMALLDESC
119 !define MUI_DIRECTORYPAGE
121 !define MUI_ABORTWARNING
122 !define MUI_FINISHPAGE
124 !define MUI_UNINSTALLER
125 !define MUI_UNCONFIRMPAGE
128 !insertmacro MUI_PAGE_WELCOME
129 !insertmacro MUI_PAGE_LICENSE "Licenses.rtf"
130 !insertmacro MUI_PAGE_COMPONENTS
131 !insertmacro MUI_PAGE_DIRECTORY
132 Page custom AFSPageGetCellServDB
133 Page custom AFSPageGetCellName
134 Page custom AFSPageConfigAFSCreds
135 !insertmacro MUI_PAGE_INSTFILES
136 !insertmacro MUI_PAGE_FINISH
138 ;--------------------------------
141 !insertmacro MUI_LANGUAGE "English"
142 ;!insertmacro MUI_LANGUAGE "French"
143 !insertmacro MUI_LANGUAGE "German"
144 !insertmacro MUI_LANGUAGE "Spanish"
145 !insertmacro MUI_LANGUAGE "SimpChinese"
146 !insertmacro MUI_LANGUAGE "TradChinese"
147 !insertmacro MUI_LANGUAGE "Japanese"
148 !insertmacro MUI_LANGUAGE "Korean"
149 ;!insertmacro MUI_LANGUAGE "Italian"
150 ;!insertmacro MUI_LANGUAGE "Dutch"
151 ;!insertmacro MUI_LANGUAGE "Danish"
152 ;!insertmacro MUI_LANGUAGE "Greek"
153 ;!insertmacro MUI_LANGUAGE "Russian"
154 !insertmacro MUI_LANGUAGE "PortugueseBR"
155 ;!insertmacro MUI_LANGUAGE "Polish"
156 ;!insertmacro MUI_LANGUAGE "Ukrainian"
157 ;!insertmacro MUI_LANGUAGE "Czech"
158 ;!insertmacro MUI_LANGUAGE "Slovak"
159 ;!insertmacro MUI_LANGUAGE "Croatian"
160 ;!insertmacro MUI_LANGUAGE "Bulgarian"
161 ;!insertmacro MUI_LANGUAGE "Hungarian"
162 ;!insertmacro MUI_LANGUAGE "Thai"
163 ;!insertmacro MUI_LANGUAGE "Romanian"
164 ;!insertmacro MUI_LANGUAGE "Macedonian"
165 ;!insertmacro MUI_LANGUAGE "Turkish"
167 ;--------------------------------
171 LangString DESC_SecCopyUI ${LANG_ENGLISH} "OpenAFS for Windows: English"
172 ;LangString DESC_SecCopyUI ${LANG_FRENCH} "OpenAFS for Windows: French"
173 LangString DESC_SecCopyUI ${LANG_GERMAN} "OpenAFS for Windows: German"
174 LangString DESC_SecCopyUI ${LANG_SPANISH} "OpenAFS for Windows: Spanish"
175 LangString DESC_SecCopyUI ${LANG_SIMPCHINESE} "OpenAFS for Windows: Simplified Chinese"
176 LangString DESC_SecCopyUI ${LANG_TRADCHINESE} "OpenAFS for Windows: Traditional Chinese description"
177 LangString DESC_SecCopyUI ${LANG_JAPANESE} "OpenAFS for Windows: Japanese description"
178 LangString DESC_SecCopyUI ${LANG_KOREAN} "OpenAFS for Windows: Korean description"
179 ;LangString DESC_SecCopyUI ${LANG_ITALIAN} "OpenAFS for Windows: Italian description"
180 ;LangString DESC_SecCopyUI ${LANG_DUTCH} "OpenAFS for Windows: Dutch description"
181 ;LangString DESC_SecCopyUI ${LANG_DANISH} "OpenAFS for Windows: Danish description"
182 ;LangString DESC_SecCopyUI ${LANG_GREEK} "OpenAFS for Windows: Greek description"
183 ;LangString DESC_SecCopyUI ${LANG_RUSSIAN} "OpenAFS for Windows: Russian description"
184 LangString DESC_SecCopyUI ${LANG_PORTUGUESEBR} "OpenAFS for Windows: Portuguese (Brasil) description"
185 ;LangString DESC_SecCopyUI ${LANG_POLISH} "OpenAFS for Windows: Polish description"
186 ;LangString DESC_SecCopyUI ${LANG_UKRAINIAN} "OpenAFS for Windows: Ukrainian description"
187 ;LangString DESC_SecCopyUI ${LANG_CZECH} "OpenAFS for Windows: Czechian description"
188 ;LangString DESC_SecCopyUI ${LANG_SLOVAK} "OpenAFS for Windows: Slovakian description"
189 ;LangString DESC_SecCopyUI ${LANG_CROATIAN} "OpenAFS for Windows: Slovakian description"
190 ;LangString DESC_SecCopyUI ${LANG_BULGARIAN} "OpenAFS for Windows: Bulgarian description"
191 ;LangString DESC_SecCopyUI ${LANG_HUNGARIAN} "OpenAFS for Windows: Hungarian description"
192 ;LangString DESC_SecCopyUI ${LANG_THAI} "OpenAFS for Windows: Thai description"
193 ;LangString DESC_SecCopyUI ${LANG_ROMANIAN} "OpenAFS for Windows: Romanian description"
194 ;LangString DESC_SecCopyUI ${LANG_MACEDONIAN} "OpenAFS for Windows: Macedonian description"
195 ;LangString DESC_SecCopyUI ${LANG_TURKISH} "OpenAFS for Windows: Turkish description"
197 LangString DESC_secClient ${LANG_ENGLISH} "OpenAFS Client: Allows you to access AFS from your Windows PC."
198 LangString DESC_secClient ${LANG_GERMAN} "OpenAFS Client: Allows you to access AFS from your Windows PC."
199 LangString DESC_secClient ${LANG_SPANISH} "OpenAFS Client: Allows you to access AFS from your Windows PC."
200 LangString DESC_secClient ${LANG_SIMPCHINESE} "OpenAFS Client: Allows you to access AFS from your Windows PC."
201 LangString DESC_secClient ${LANG_TRADCHINESE} "OpenAFS Client: Allows you to access AFS from your Windows PC."
202 LangString DESC_secClient ${LANG_JAPANESE} "OpenAFS Client: Allows you to access AFS from your Windows PC."
203 LangString DESC_secClient ${LANG_KOREAN} "OpenAFS Client: Allows you to access AFS from your Windows PC."
204 LangString DESC_secClient ${LANG_PORTUGUESEBR} "OpenAFS Client: Allows you to access AFS from your Windows PC."
206 LangString DESC_secLoopback ${LANG_ENGLISH} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
207 LangString DESC_secLoopback ${LANG_GERMAN} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
208 LangString DESC_secLoopback ${LANG_SPANISH} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
209 LangString DESC_secLoopback ${LANG_SIMPCHINESE} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
210 LangString DESC_secLoopback ${LANG_TRADCHINESE} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
211 LangString DESC_secLoopback ${LANG_JAPANESE} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
212 LangString DESC_secLoopback ${LANG_KOREAN} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
213 LangString DESC_secLoopback ${LANG_PORTUGUESEBR} "MS Loopback adapter: Installs the adapter for a more reliable AFS client."
215 LangString DESC_secServer ${LANG_ENGLISH} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
216 LangString DESC_secServer ${LANG_GERMAN} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
217 LangString DESC_secServer ${LANG_SPANISH} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
218 LangString DESC_secServer ${LANG_SIMPCHINESE} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
219 LangString DESC_secServer ${LANG_TRADCHINESE} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
220 LangString DESC_secServer ${LANG_JAPANESE} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
221 LangString DESC_secServer ${LANG_KOREAN} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
222 LangString DESC_secServer ${LANG_PORTUGUESEBR} "OpenAFS Server: Allows you to run an AFS file server. This option requires the AFS Client."
224 LangString DESC_secControl ${LANG_ENGLISH} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
225 LangString DESC_secControl ${LANG_GERMAN} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
226 LangString DESC_secControl ${LANG_SPANISH} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
227 LangString DESC_secControl ${LANG_SIMPCHINESE} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
228 LangString DESC_secControl ${LANG_TRADCHINESE} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
229 LangString DESC_secControl ${LANG_JAPANESE} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
230 LangString DESC_secControl ${LANG_KOREAN} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
231 LangString DESC_secControl ${LANG_PORTUGUESEBR} "Control Center: GUI utilities for managing and configuring AFS servers. This option requires the AFS Client."
233 LangString DESC_secDocs ${LANG_ENGLISH} "Supplemental Documentation: Additional documentation for using OpenAFS."
234 LangString DESC_secDocs ${LANG_GERMAN} "Supplemental Documentation: Additional documentation for using OpenAFS."
235 LangString DESC_secDocs ${LANG_SPANISH} "Supplemental Documentation: Additional documentation for using OpenAFS."
236 LangString DESC_secDocs ${LANG_SIMPCHINESE} "Supplemental Documentation: Additional documentation for using OpenAFS."
237 LangString DESC_secDocs ${LANG_TRADCHINESE} "Supplemental Documentation: Additional documentation for using OpenAFS."
238 LangString DESC_secDocs ${LANG_JAPANESE} "Supplemental Documentation: Additional documentation for using OpenAFS."
239 LangString DESC_secDocs ${LANG_KOREAN} "Supplemental Documentation: Additional documentation for using OpenAFS."
240 LangString DESC_secDocs ${LANG_PORTUGUESEBR} "Supplemental Documentation: Additional documentation for using OpenAFS."
242 LangString DESC_secSDK ${LANG_ENGLISH} "SDK: Header files and libraries for developing software with OpenAFS."
243 LangString DESC_secSDK ${LANG_GERMAN} "SDK: Header files and libraries for developing software with OpenAFS."
244 LangString DESC_secSDK ${LANG_SPANISH} "SDK: Header files and libraries for developing software with OpenAFS."
245 LangString DESC_secSDK ${LANG_SIMPCHINESE} "SDK: Header files and libraries for developing software with OpenAFS."
246 LangString DESC_secSDK ${LANG_TRADCHINESE} "SDK: Header files and libraries for developing software with OpenAFS."
247 LangString DESC_secSDK ${LANG_JAPANESE} "SDK: Header files and libraries for developing software with OpenAFS."
248 LangString DESC_secSDK ${LANG_KOREAN} "SDK: Header files and libraries for developing software with OpenAFS."
249 LangString DESC_secSDK ${LANG_PORTUGUESEBR} "SDK: Header files and libraries for developing software with OpenAFS."
251 LangString DESC_secDEBUG ${LANG_ENGLISH} "Debug symbols: Used for debugging problems with OpenAFS."
252 LangString DESC_secDEBUG ${LANG_GERMAN} "Debug symbols: Used for debugging problems with OpenAFS."
253 LangString DESC_secDEBUG ${LANG_SPANISH} "Debug symbols: Used for debugging problems with OpenAFS."
254 LangString DESC_secDEBUG ${LANG_SIMPCHINESE} "Debug symbols: Used for debugging problems with OpenAFS."
255 LangString DESC_secDEBUG ${LANG_TRADCHINESE} "Debug symbols: Used for debugging problems with OpenAFS."
256 LangString DESC_secDEBUG ${LANG_JAPANESE} "Debug symbols: Used for debugging problems with OpenAFS."
257 LangString DESC_secDEBUG ${LANG_KOREAN} "Debug symbols: Used for debugging problems with OpenAFS."
258 LangString DESC_secDEBUG ${LANG_PORTUGUESEBR} "Debug symbols: Used for debugging problems with OpenAFS."
260 ; Popup error messages
261 LangString CellError ${LANG_ENGLISH} "You must specify a valid CellServDB file to copy during install"
262 LangString CellError ${LANG_GERMAN} "You must specify a valid CellServDB file to copy during the install"
263 LangString CellError ${LANG_SPANISH} "You must specify a valid CellServDB file to copy during the install"
264 LangString CellError ${LANG_SIMPCHINESE} "You must specify a valid CellServDB file to copy during the install"
265 LangString CellError ${LANG_TRADCHINESE} "You must specify a valid CellServDB file to copy during the install"
266 LangString CellError ${LANG_JAPANESE} "You must specify a valid CellServDB file to copy during the install"
267 LangString CellError ${LANG_KOREAN} "You must specify a valid CellServDB file to copy during the install"
268 LangString CellError ${LANG_PORTUGUESEBR} "You must specify a valid CellServDB file to copy during the install"
270 LangString CellNameError ${LANG_ENGLISH} "You must specify a cell name for your client to use."
271 LangString CellNameError ${LANG_GERMAN} "You must specify a cell name for your client to use."
272 LangString CellNameError ${LANG_SPANISH} "You must specify a cell name for your client to use."
273 LangString CellNameError ${LANG_SIMPCHINESE} "You must specify a cell name for your client to use."
274 LangString CellNameError ${LANG_TRADCHINESE} "You must specify a cell name for your client to use."
275 LangString CellNameError ${LANG_JAPANESE} "You must specify a cell name for your client to use."
276 LangString CellNameError ${LANG_KOREAN} "You must specify a cell name for your client to use."
277 LangString CellNameError ${LANG_PORTUGUESEBR} "You must specify a cell name for your client to use."
279 LangString URLError ${LANG_ENGLISH} "You must specify a URL if you choose the option to download the CellServDB."
280 LangString URLError ${LANG_GERMAN} "You must specify a URL if you choose the option to download the CellServDB."
281 LangString URLError ${LANG_SPANISH} "You must specify a URL if you choose the option to download the CellServDB."
282 LangString URLError ${LANG_SIMPCHINESE} "You must specify a URL if you choose the option to download the CellServDB."
283 LangString URLError ${LANG_TRADCHINESE} "You must specify a URL if you choose the option to download the CellServDB."
284 LangString URLError ${LANG_JAPANESE} "You must specify a URL if you choose the option to download the CellServDB."
285 LangString URLError ${LANG_KOREAN} "You must specify a URL if you choose the option to download the CellServDB."
286 LangString URLError ${LANG_PORTUGUESEBR} "You must specify a URL if you choose the option to download the CellServDB."
289 ; Upgrade/re-install strings
290 LangString UPGRADE_CLIENT ${LANG_ENGLISH} "Upgrade AFS Client"
291 LangString UPGRADE_CLIENT ${LANG_GERMAN} "Upgrade AFS Client"
292 LangString UPGRADE_CLIENT ${LANG_SPANISH} "Upgrade AFS Client"
293 LangString UPGRADE_CLIENT ${LANG_SIMPCHINESE} "Upgrade AFS Client"
294 LangString UPGRADE_CLIENT ${LANG_TRADCHINESE} "Upgrade AFS Client"
295 LangString UPGRADE_CLIENT ${LANG_JAPANESE} "Upgrade AFS Client"
296 LangString UPGRADE_CLIENT ${LANG_KOREAN} "Upgrade AFS Client"
297 LangString UPGRADE_CLIENT ${LANG_PORTUGUESEBR} "Upgrade AFS Client"
299 LangString REINSTALL_CLIENT ${LANG_ENGLISH} "Re-install AFS Client"
300 LangString REINSTALL_CLIENT ${LANG_GERMAN} "Re-install AFS Client"
301 LangString REINSTALL_CLIENT ${LANG_SPANISH} "Re-install AFS Client"
302 LangString REINSTALL_CLIENT ${LANG_SIMPCHINESE} "Re-install AFS Client"
303 LangString REINSTALL_CLIENT ${LANG_TRADCHINESE} "Re-install AFS Client"
304 LangString REINSTALL_CLIENT ${LANG_JAPANESE} "Re-install AFS Client"
305 LangString REINSTALL_CLIENT ${LANG_KOREAN} "Re-install AFS Client"
306 LangString REINSTALL_CLIENT ${LANG_PORTUGUESEBR} "Re-install AFS Client"
308 LangString UPGRADE_SERVER ${LANG_ENGLISH} "Upgrade AFS Server"
309 LangString UPGRADE_SERVER ${LANG_GERMAN} "Upgrade AFS Server"
310 LangString UPGRADE_SERVER ${LANG_SPANISH} "Upgrade AFS Server"
311 LangString UPGRADE_SERVER ${LANG_SIMPCHINESE} "Upgrade AFS Server"
312 LangString UPGRADE_SERVER ${LANG_TRADCHINESE} "Upgrade AFS Server"
313 LangString UPGRADE_SERVER ${LANG_JAPANESE} "Upgrade AFS Server"
314 LangString UPGRADE_SERVER ${LANG_KOREAN} "Upgrade AFS Server"
315 LangString UPGRADE_SERVER ${LANG_PORTUGUESEBR} "Upgrade AFS Server"
317 LangString REINSTALL_SERVER ${LANG_ENGLISH} "Re-install AFS Server"
318 LangString REINSTALL_SERVER ${LANG_GERMAN} "Re-install AFS Server"
319 LangString REINSTALL_SERVER ${LANG_SPANISH} "Re-install AFS Server"
320 LangString REINSTALL_SERVER ${LANG_SIMPCHINESE} "Re-install AFS Server"
321 LangString REINSTALL_SERVER ${LANG_TRADCHINESE} "Re-install AFS Server"
322 LangString REINSTALL_SERVER ${LANG_JAPANESE} "Re-install AFS Server"
323 LangString REINSTALL_SERVER ${LANG_KOREAN} "Re-install AFS Server"
324 LangString REINSTALL_SERVER ${LANG_PORTUGUESEBR} "Re-install AFS Server"
326 ReserveFile "CellServPage.ini"
327 ReserveFile "AFSCell.ini"
328 !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS ;InstallOptions plug-in
329 !insertmacro MUI_RESERVEFILE_LANGDLL ;Language selection dialog
331 RequestExecutionLevel admin
333 ;--------------------------------
335 ; Macro - Upgrade DLL File
336 ; Written by Joost Verburg
337 ; ------------------------
340 ; LOCALFILE - Location of the new DLL file (on the compiler system)
341 ; DESTFILE - Location of the DLL file that should be upgraded
342 ; (on the user's system)
343 ; TEMPBASEDIR - Directory on the user's system to store a temporary file
344 ; when the system has to be rebooted.
345 ; For Win9x support, this should be on the same volume as the
347 ; The Windows temp directory could be located on any volume,
348 ; so you cannot use this directory.
350 ; Define REPLACEDLL_NOREGISTER if you want to upgrade a DLL that does not
351 ; have to be registered.
353 ; Note: If you want to support Win9x, you can only use
354 ; short filenames (8.3).
357 ; !insertmacro ReplaceDLL "dllname.dll" "$SYSDIR\dllname.dll" "$SYSDIR"
360 !macro ReplaceDLL LOCALFILE DESTFILE TEMPBASEDIR
369 ;------------------------
370 ;Unique number for labels
372 !define REPLACEDLL_UNIQUE ${__LINE__}
374 ;------------------------
375 ;Copy the parameters used on run-time to a variable
376 ;This allows the usage of variables as paramter
378 StrCpy $R4 "${DESTFILE}"
379 StrCpy $R5 "${TEMPBASEDIR}"
381 ;------------------------
382 ;Check file and version
384 IfFileExists $R4 0 replacedll.copy_${REPLACEDLL_UNIQUE}
387 ; GetDLLVersionLocal "${LOCALFILE}" $R0 $R1
388 ; GetDLLVersion $R4 $R2 $R3
389 ;IfErrors replacedll.upgrade_${REPLACEDLL_UNIQUE}
391 ;IntCmpU $R0 $R2 0 replacedll.done_${REPLACEDLL_UNIQUE} \
392 ; replacedll.upgrade_${REPLACEDLL_UNIQUE}
393 ;IntCmpU $R1 $R3 replacedll.done_${REPLACEDLL_UNIQUE} \
394 ; replacedll.done_${REPLACEDLL_UNIQUE} \
395 ; replacedll.upgrade_${REPLACEDLL_UNIQUE}
397 ;------------------------
398 ;Let's replace the DLL!
402 ;replacedll.upgrade_${REPLACEDLL_UNIQUE}:
403 !ifndef REPLACEDLL_NOREGISTER
408 ;------------------------
409 ;Try to copy the DLL directly
413 Call :replacedll.file_${REPLACEDLL_UNIQUE}
414 IfErrors 0 replacedll.noreboot_${REPLACEDLL_UNIQUE}
416 ;------------------------
417 ;DLL is in use. Copy it to a temp file and Rename it on reboot.
419 GetTempFileName $R0 $R5
420 Call :replacedll.file_${REPLACEDLL_UNIQUE}
421 Rename /REBOOTOK $R0 $R4
423 ;------------------------
424 ;Register the DLL on reboot
426 !ifndef REPLACEDLL_NOREGISTER
427 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce" \
428 "Register $R4" 'rundll32.exe "$R4",DllRegisterServer'
431 Goto replacedll.done_${REPLACEDLL_UNIQUE}
433 ;------------------------
434 ;DLL does not exist - just extract
436 replacedll.copy_${REPLACEDLL_UNIQUE}:
438 Call :replacedll.file_${REPLACEDLL_UNIQUE}
440 ;------------------------
443 replacedll.noreboot_${REPLACEDLL_UNIQUE}:
444 !ifndef REPLACEDLL_NOREGISTER
448 ;------------------------
451 replacedll.done_${REPLACEDLL_UNIQUE}:
460 ;------------------------
463 Goto replacedll.end_${REPLACEDLL_UNIQUE}
465 ;------------------------
466 ;Called to extract the DLL
468 replacedll.file_${REPLACEDLL_UNIQUE}:
469 File /oname=$R0 "${LOCALFILE}"
472 replacedll.end_${REPLACEDLL_UNIQUE}:
474 ;------------------------
477 SetOverwrite lastused
479 !undef REPLACEDLL_UNIQUE
484 ;--------------------------------
487 ;Things that need to be extracted on first (keep these lines before any File command!)
488 ;Only useful for BZIP2 compression
489 !insertmacro MUI_RESERVEFILE_LANGDLL
491 ;--------------------------------
502 ;--------------------------------
505 ;----------------------
507 Section "!AFS Client" secClient
509 SetShellVarContext all
511 ; Check for bad previous installation (if we are doing a new install)
512 Call IsAnyAFSInstalled
514 StrCmp $R0 "0" +1 skipCheck
518 ; Stop any running services or we can't replace the files
519 ; Stop the running processes
521 File /oname=$R0 "${AFS_WININSTALL_DIR}\Killer.exe" ; Might not have the MSVCR71.DLL file to run
522 nsExec::Exec '$R0 afsd_service.exe'
523 nsExec::Exec '$R0 afscreds.exe'
524 Exec "afscreds.exe -z"
525 ; in case we are upgrading an old version that does not support -z
526 nsExec::Exec '$R0 afscreds.exe'
528 ;nsExec::Exec '$R0 krbcc32s.exe'
531 nsExec::Exec "net stop TransarcAFSDaemon"
532 nsExec::Exec "net stop TransarcAFSServer"
534 ; Do client components
535 SetOutPath "$INSTDIR\Client\Program"
536 File "${AFS_CLIENT_BUILDDIR}\afsshare.exe"
537 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\libosi.dll" "$INSTDIR\Client\Program\libosi.dll" "$INSTDIR"
538 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\libafsconf.dll" "$INSTDIR\Client\Program\libafsconf.dll" "$INSTDIR"
539 File "${AFS_CLIENT_BUILDDIR}\klog.exe"
540 File "${AFS_CLIENT_BUILDDIR}\tokens.exe"
541 File "${AFS_CLIENT_BUILDDIR}\unlog.exe"
542 File "${AFS_CLIENT_BUILDDIR}\fs.exe"
543 File "${AFS_CLIENT_BUILDDIR}\afsdacl.exe"
544 File "${AFS_CLIENT_BUILDDIR}\cmdebug.exe"
545 File "${AFS_CLIENT_BUILDDIR}\aklog.exe"
546 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds.exe" "$INSTDIR\Client\Program\afscreds.exe" "$INSTDIR"
547 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext.dll" "$INSTDIR\Client\Program\afs_shl_ext.dll" "$INSTDIR"
548 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afsd_service.exe" "$INSTDIR\Client\Program\afsd_service.exe" "$INSTDIR"
549 File "${AFS_CLIENT_BUILDDIR}\symlink.exe"
550 File "${AFS_DESTDIR}\bin\kpasswd.exe"
551 File "${AFS_SERVER_BUILDDIR}\pts.exe"
552 File "${AFS_SERVER_BUILDDIR}\bos.exe"
553 File "${AFS_SERVER_BUILDDIR}\kas.exe"
554 File "${AFS_SERVER_BUILDDIR}\vos.exe"
555 File "${AFS_SERVER_BUILDDIR}\udebug.exe"
556 File "${AFS_DESTDIR}\bin\translate_et.exe"
557 File "${AFS_DESTDIR}\etc\rxdebug.exe"
558 File "${AFS_DESTDIR}\etc\backup.exe"
559 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa.cpl" "$INSTDIR\Client\Program\afs_cpa.cpl" "$INSTDIR"
560 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscred.dll" "$INSTDIR\Client\Program\afscred.dll" "$INSTDIR"
561 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscred_en_us.dll" "$INSTDIR\Client\Program\afscred_en_us.dll" "$INSTDIR"
562 File "${AFS_CLIENT_BUILDDIR}\afsplhlp.chm"
564 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afslogon.dll" "$INSTDIR\Client\Program\afslogon.dll" "$INSTDIR"
565 File "${AFS_CLIENT_BUILDDIR}\afscpcc.exe"
570 !insertmacro ReplaceDLL "..\..\afsrdr\objfre_w2K_x86\i386\afsrdr.sys" "$SYSDIR\DRIVERS\afsrdr.sys" "$INSTDIR"
572 !insertmacro ReplaceDLL "..\..\afsrdr\objchk_w2K_x86\i386\afsrdr.sys" "$SYSDIR\DRIVERS\afsrdr.sys" "$INSTDIR"
578 ; Get AFS CellServDB file
579 Call afs.GetCellServDB
582 File /oname=$R0 "${AFS_WININSTALL_DIR}\AdminGroup.exe"
583 nsExec::Exec '$R0 -create'
586 ; Include Kerberos for Windows files in the installer...
587 SetOutPath "$INSTDIR\kfw\bin\"
588 File "${KFW_SOURCE}\bin\*"
589 SetOutPath "$INSTDIR\kfw\doc"
590 File "${KFW_SOURCE}\doc\*"
593 ;Store install folder
594 WriteRegStr HKCU "${AFS_REGKEY_ROOT}\Client" "" $INSTDIR
595 Call AFSCommon.Install
597 ; Write registry entries
598 WriteRegStr HKCR "*\shellex\ContextMenuHandlers\AFS Client Shell Extension" "" "{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}"
599 WriteRegStr HKCR "CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}" "" "AFS Client Shell Extension"
600 WriteRegStr HKCR "CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}\InprocServer32" "" "$INSTDIR\Client\Program\afs_shl_ext.dll"
601 WriteRegStr HKCR "CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}\InprocServer32" "ThreadingModel" "Apartment"
602 WriteRegStr HKCR "FOLDER\shellex\ContextMenuHandlers\AFS Client Shell Extension" "" "{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}"
603 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" "{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}" "AFS Client Shell Extension"
604 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls" "afs_cpa" "$INSTDIR\Client\Program\afs_cpa.cpl"
606 ; Support for apps that wrote submount data directly to afsdsbmt.ini
607 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\afsdsbmt.ini" "AFS Mappings" "USR:Software\OpenAFS\Client\mappings"
608 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\afsdsbmt.ini" "AFS Submounts" "SYS:OpenAFS\Client\Submounts"
611 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion"
612 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "VersionString" ${AFS_VERSION}
613 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Title" "AFS Client"
614 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Description" "AFS Client"
615 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "PathName" "$INSTDIR\Client"
616 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Software Type" "File System"
617 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "MajorVersion" ${AFS_MAJORVERSION}
618 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "MinorVersion" ${AFS_MINORVERSION}
619 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "PatchLevel" ${AFS_PATCHLEVEL}
620 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "VersionString" ${AFS_VERSION}
621 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Title" "AFS Client"
622 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Description" "AFS Client"
623 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Software Type" "File System"
624 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "PathName" "$INSTDIR\Client\Program"
625 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "MajorVersion" ${AFS_MAJORVERSION}
626 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "MinorVersion" ${AFS_MINORVERSION}
627 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "PatchLevel" ${AFS_PATCHLEVEL}
629 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Debug" 1
630 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Debug" 1
632 ; Delete the DEBUG string
633 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "Debug"
634 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Client\${AFS_VERSION}" "Debug"
637 ;NetIDMgr Plug-in Reg Entries
638 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS" "ImagePath" "$INSTDIR\Client\Program\afscred.dll"
639 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS" "Description" "OpenAFS Module"
640 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS" "Vendor" "Secure Endpoints Inc."
641 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS" "PluginList" "AfsCred"
642 WriteRegDWORD HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS" "NoUnload" "1"
644 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Plugins\AfsCred" "Module" "OpenAFS"
645 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Plugins\AfsCred" "Description" "AFS Credentials Provider"
646 WriteRegStr HKLM "${NID_PLUGIN_MGR}\Plugins\AfsCred" "Dependencies" "Krb5Cred"
647 WriteRegDWORD HKLM "${NID_PLUGIN_MGR}\Plugins\AfsCred" "Type" "1"
649 ; On Windows 2000 work around KB301673. This is fixed in Windows XP and 2003
650 Call GetWindowsVersion
652 StrCmp $R1 "2000" +1 +2
653 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\NetBT\Parameters" "SmbDeviceEnabled" 0
655 ;Write start menu entries
656 CreateDirectory "$SMPROGRAMS\OpenAFS\Client"
657 CreateShortCut "$SMPROGRAMS\OpenAFS\Uninstall OpenAFS.lnk" "$INSTDIR\Uninstall.exe"
659 ; Create command line options for AFSCreds...
661 ReadINIStr $R1 $2 "Field 3" "State"
664 ReadINIStr $R1 $2 "Field 5" "State"
667 ReadINIStr $R1 $2 "Field 7" "State"
670 ReadINIStr $R1 $2 "Field 9" "State"
673 ReadINIStr $R1 $2 "Field 13" "State"
677 WriteRegStr HKLM "SOFTWARE\OpenAFS\Client" "AfscredsShortcutParams" "$R2"
679 CreateShortCut "$SMPROGRAMS\OpenAFS\Client\Authentication.lnk" "$INSTDIR\Client\Program\afscreds.exe" "$R2"
681 ReadINIStr $R1 $2 "Field 1" "State"
683 CreateShortCut "$SMSTARTUP\AFS Credentials.lnk" "$INSTDIR\Client\Program\afscreds.exe" "$R2"
685 Push "$INSTDIR\Client\Program"
687 Push "$INSTDIR\Common"
691 ; Add kfw to path too
692 Push "$INSTDIR\kfw\bin"
696 ; Create the AFS service
697 SetOutPath "$INSTDIR\Common"
698 File "${AFS_WININSTALL_DIR}\Service.exe"
699 nsExec::Exec "net stop TransarcAFSDaemon"
700 nsExec::Exec "net stop AfsRdr"
701 ;IMPORTANT! If we are not refreshing the config files, do NOT remove the service
702 ;Don't re-install because it must be present or we wouldn't have passed the Reg check
704 ReadRegStr $R2 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "Cell"
705 StrCmp $R2 "" +1 skipremove
706 nsExec::Exec '$INSTDIR\Common\Service.exe u TransarcAFSDaemon'
707 nsExec::Exec '$INSTDIR\Common\Service.exe TransarcAFSDaemon "$INSTDIR\Client\Program\afsd_service.exe" "OpenAFS Client Service"'
708 nsExec::Exec '$INSTDIR\Common\Service.exe u AfsRdr'
710 nsExec::Exec '$INSTDIR\Common\Service.exe AfsRdr "System32\DRIVERS\afsrdr.sys" "AFS Redirector"'
713 Delete "$INSTDIR\Common\service.exe"
716 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon" "" ""
717 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "ProviderPath" "$INSTDIR\Client\Program\afslogon.dll"
718 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "AuthentProviderPath" "$INSTDIR\Client\Program\afslogon.dll"
719 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "Class" 2
720 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "VerboseLogging" 10
722 ; Must also add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder
723 ; and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order
724 ; to also include the service name.
726 ReadINIStr $R0 $1 "Field 7" "State"
727 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "LogonOptions" $R0
728 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "LogonScript" "$INSTDIR\Client\Program\afscreds.exe -:%s -x -a -m -n -q"
729 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\NetworkProvider" "Name" "OpenAFSDaemon"
732 ReadINIStr $R0 $1 "Field 2" "State"
733 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "Cell" $R0
734 ReadINIStr $R0 $1 "Field 3" "State"
735 WriteRegDWORD HKLM "SOFTWARE\OpenAFS\Client" "ShowTrayIcon" 1
736 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "SecurityLevel" $R0
737 ReadINIStr $R0 $1 "Field 5" "State"
738 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "FreelanceClient" $R0
739 ReadINIStr $R0 $1 "Field 9" "State"
740 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "UseDNS" $R0
741 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "NetbiosName" "AFS"
742 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "MountRoot" "/afs"
743 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "RxMaxMTU" 0
744 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "IsGateway" 0
745 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "HideDotFiles" 1
747 ; Find Lana By Name appears to be causing grief for many people
748 ; I do not have time to track this down so I am simply going to disable it
749 WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "NoFindLanaByName" 1
751 strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon"
752 strcpy $REG_VALUE "DependOnGroup"
753 strcpy $REG_DATA_1 "PNP_TDI"
754 strcpy $REG_DATA_2 ""
755 strcpy $REG_DATA_3 ""
756 strcpy $REG_DATA_4 ""
757 Call RegWriteMultiStr
758 strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon"
759 strcpy $REG_VALUE "DependOnService"
760 strcpy $REG_DATA_1 "Tcpip"
761 strcpy $REG_DATA_2 "NETBIOS"
762 strcpy $REG_DATA_3 "RpcSs"
764 strcpy $REG_DATA_4 "AfsRdr"
766 strcpy $REG_DATA_4 ""
768 Call RegWriteMultiStr
770 strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\AfsRdr"
771 strcpy $REG_VALUE "DependOnService"
772 strcpy $REG_DATA_1 "Tcpip"
773 strcpy $REG_DATA_2 ""
774 strcpy $REG_DATA_3 ""
775 strcpy $REG_DATA_4 ""
776 Call RegWriteMultiStr
779 ; WinLogon Event Notification
780 WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "Asynchronous" 0
781 WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "Impersonate" 1
782 WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "DLLName" "afslogon.dll"
783 WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "Logon" "AFS_Logon_Event"
784 WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "Logoff" "AFS_Logoff_Event"
785 WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\AfsLogon" "Startup" "AFS_Startup_Event"
787 ; No longer install KFW Logon Handler - KFW 3.1 and above supports this functionality
788 ; WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\KFWLogon" "Asynchronous" 0
789 ; WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\KFWLogon" "Impersonate" 0
790 ; WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\KFWLogon" "DLLName" "afslogon.dll"
791 ; WriteRegStr HKLM "Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Notify\KFWLogon" "Logon" "KFW_Logon_Event"
795 WriteUninstaller "$INSTDIR\Uninstall.exe"
796 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
797 Call CreateDesktopIni
803 ; MS Loopback adapter
804 Section "!MS Loopback Adapter" secLoopback
806 Call afs.InstallMSLoopback
811 ;------------------------
813 Section /o "AFS Server" secServer
815 SetShellVarContext all
817 ; Check for bad previous installation (if we are doing a new install)
818 Call IsAnyAFSInstalled
820 StrCmp $R0 "0" +1 skipCheck
824 ; Stop any running services or we can't replace the files
825 ; Stop the running processes
827 File /oname=$R0 "${AFS_WININSTALL_DIR}\Killer.exe"
828 nsExec::Exec '$R0 afscreds.exe'
829 Exec "afscreds.exe -z"
830 ; in case we are upgrading an old version that does not support -z
832 nsExec::Exec '$R0 afscreds.exe'
834 ;nsExec::Exec '$R0 krbcc32s.exe'
839 nsExec::Exec "net stop TransarcAFSDaemon"
840 nsExec::Exec "net stop TransarcAFSServer"
842 CreateDirectory "$INSTDIR\Server\usr\afs\etc"
843 CreateDirectory "$INSTDIR\Server\usr\afs\local"
844 CreateDirectory "$INSTDIR\Server\usr\afs\etc\logs"
846 SetOutPath "$INSTDIR\Server\usr\afs\bin"
847 File "${AFS_SERVER_BUILDDIR}\afskill.exe"
848 File "${AFS_SERVER_BUILDDIR}\afssvrcfg.exe"
849 File "${AFS_SERVER_BUILDDIR}\asetkey.exe"
850 File "${AFS_SERVER_BUILDDIR}\bosctlsvc.exe"
851 File "${AFS_SERVER_BUILDDIR}\bosserver.exe"
852 File "${AFS_SERVER_BUILDDIR}\buserver.exe"
853 File "${AFS_ETC_BUILDDIR}\butc.exe"
854 File "${AFS_SERVER_BUILDDIR}\fileserver.exe"
855 File "${AFS_ETC_BUILDDIR}\fms.exe"
856 File "${AFS_SERVER_BUILDDIR}\kaserver.exe"
857 File "${AFS_SERVER_BUILDDIR}\ptserver.exe"
858 File "${AFS_SERVER_BUILDDIR}\salvager.exe"
859 File "${AFS_SERVER_BUILDDIR}\upclient.exe"
860 File "${AFS_SERVER_BUILDDIR}\upserver.exe"
861 File "${AFS_SERVER_BUILDDIR}\vlserver.exe"
862 File "${AFS_SERVER_BUILDDIR}\volinfo.exe"
863 File "${AFS_SERVER_BUILDDIR}\volserver.exe"
865 ;AFS Server common files
866 SetOutPath "$INSTDIR\Common"
867 File "${AFS_SERVER_BUILDDIR}\afsvosadmin.dll"
868 File "${AFS_SERVER_BUILDDIR}\afsbosadmin.dll"
869 File "${AFS_SERVER_BUILDDIR}\afscfgadmin.dll"
870 File "${AFS_SERVER_BUILDDIR}\afskasadmin.dll"
871 File "${AFS_SERVER_BUILDDIR}\afsptsadmin.dll"
873 SetOutPath "$INSTDIR\Common"
877 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver.cpl" "$SYSDIR\afsserver.cpl" "$INSTDIR"
879 ;Store install folder
880 WriteRegStr HKCU "${AFS_REGKEY_ROOT}\AFS Server" "" $INSTDIR
882 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion"
883 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "VersionString" ${AFS_VERSION}
884 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "Title" "AFS Server"
885 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "Description" "AFS Server for Windows"
886 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "PathName" "$INSTDIR\Server"
887 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "Software Type" "File System"
888 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "MajorVersion" ${AFS_MAJORVERSION}
889 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "MinorVersion" ${AFS_MINORVERSION}
890 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "PatchLevel" ${AFS_PATCHLEVEL}
891 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "VersionString" ${AFS_VERSION}
892 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "Title" "AFS Server"
893 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "Description" "AFS Server for Windows"
894 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "Software Type" "File System"
895 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "PathName" "$INSTDIR\Server"
896 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "MajorVersion" ${AFS_MAJORVERSION}
897 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "MinorVersion" ${AFS_MINORVERSION}
898 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "PatchLevel" ${AFS_PATCHLEVEL}
900 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "Debug" 1
901 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "Debug" 1
903 ; Delete the DEBUG string
904 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "Debug"
905 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Server\${AFS_VERSION}" "Debug"
907 ; Install the service
908 SetOutPath "$INSTDIR\Common"
909 File "${AFS_WININSTALL_DIR}\Service.exe"
911 File "${AFS_WININSTALL_DIR}\Service.pdb"
914 ; Check if the service exists--if it does, this is an upgrade/re-install
915 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSServer" "ImagePath"
916 StrCmp $R0 "$INSTDIR\Server\usr\afs\bin\bosctlsvc.exe" SkipStartup
918 ; If an uninstall was done, but we kept the config files, also skip
919 IfFileExists "$INSTDIR\Server\usr\afs\etc\ThisCell" SkipStartup
921 ; Make the server config wizard auto-start on bootup if this is an install (not an upgrade)
922 ; WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" "AFS Server Wizard" '"$INSTDIR\Server\usr\afs\bin\afssvrcfg.exe" /wizard"'
926 ;Don't want to whack existing settings... Make users un-install and then re-install if they want that
927 ;nsExec::Exec '$INSTDIR\Common\service.exe u TransarcAFSServer'
928 nsExec::Exec '$INSTDIR\Common\service.exe TransarcAFSServer "$INSTDIR\Server\usr\afs\bin\bosctlsvc.exe" "OpenAFS AFS Server"'
929 Delete "$INSTDIR\Common\service.exe"
931 strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSServer"
932 strcpy $REG_VALUE "DependOnGroup"
933 strcpy $REG_DATA_1 "PNP_TDI"
934 strcpy $REG_DATA_2 ""
935 strcpy $REG_DATA_3 ""
936 strcpy $REG_DATA_4 ""
937 Call RegWriteMultiStr
938 strcpy $REG_SUB_KEY "SYSTEM\CurrentControlSet\Services\TransarcAFSServer"
939 strcpy $REG_VALUE "DependOnService"
940 strcpy $REG_DATA_1 "Tcpip"
941 strcpy $REG_DATA_2 ""
942 strcpy $REG_DATA_3 ""
943 strcpy $REG_DATA_4 ""
944 Call RegWriteMultiStr
946 ;CreateDirectory "$SMPROGRAMS\OpenAFS\Server"
947 ;CreateShortCut "$SMPROGRAMS\OpenAFS\Server\Server Configuration.lnk" "$INSTDIR\Server\usr\afs\bin\afssvrcfg.exe"
949 WriteUninstaller "$INSTDIR\Uninstall.exe"
950 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
955 ;----------------------------
956 ; OpenAFS Control Center
957 Section /o "AFS Control Center" secControl
959 SetShellVarContext all
961 SetOutPath "$INSTDIR\Control Center"
962 File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager.exe"
963 File "${AFS_SERVER_BUILDDIR}\TaAfsAdmSvr.exe"
964 File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager.exe"
967 ;AFS Server common files
968 Call AFSCommon.Install
970 SetOutPath "$INSTDIR\Common"
972 ;Store install folder
973 WriteRegStr HKCU "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "PathName" $INSTDIR
974 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "VersionString" ${AFS_VERSION}
975 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "MajorVersion" ${AFS_MAJORVERSION}
976 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "MinorVersion" ${AFS_MINORVERSION}
977 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "PatchLevel" ${AFS_PATCHLEVEL}
978 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "VersionString" ${AFS_VERSION}
979 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "MajorVersion" ${AFS_MAJORVERSION}
980 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "MinorVersion" ${AFS_MINORVERSION}
981 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "PatchLevel" ${AFS_PATCHLEVEL}
983 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "Debug" 1
984 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "Debug" 1
986 ; Delete the DEBUG string
987 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "Debug"
988 DeleteRegValue HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\${AFS_VERSION}" "Debug"
991 ;Write start menu entries
992 CreateDirectory "$SMPROGRAMS\OpenAFS\Control Center"
993 CreateShortCut "$SMPROGRAMS\OpenAFS\Control Center\Account Manager.lnk" "$INSTDIR\Control Center\TaAfsAccountManager.exe"
994 CreateShortCut "$SMPROGRAMS\OpenAFS\Control Center\Server Manager.lnk" "$INSTDIR\Control Center\TaAfsServerManager.exe"
996 WriteUninstaller "$INSTDIR\Uninstall.exe"
997 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
1002 ;----------------------------
1003 ; OpenAFS Supplemental Documentation
1004 Section /o "Supplemental Documentation" secDocs
1005 SetShellVarContext all
1007 StrCmp $LANGUAGE ${LANG_ENGLISH} DoEnglish
1008 StrCmp $LANGUAGE ${LANG_GERMAN} DoGerman
1009 StrCmp $LANGUAGE ${LANG_SPANISH} DoSpanish
1010 StrCmp $LANGUAGE ${LANG_JAPANESE} DoJapanese
1011 StrCmp $LANGUAGE ${LANG_KOREAN} DoKorean
1012 StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} DoPortugueseBR
1013 StrCmp $LANGUAGE ${LANG_SIMPCHINESE} DoSimpChinese
1014 StrCmp $LANGUAGE ${LANG_TRADCHINESE} DoTradChinese
1018 SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1019 File "..\..\doc\install\Documentation\en_US\html\CmdRef\*"
1020 SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1021 File "..\..\doc\install\Documentation\en_US\html\SysAdminGd\*"
1025 SetOutPath "$INSTDIR\Documentation\html"
1026 File "..\..\doc\install\Documentation\de_DE\html\*"
1027 SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1028 ;File "..\..\doc\install\Documentation\de_DE\html\CmdRef\*"
1029 ;SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1030 ;File "..\..\doc\install\Documentation\de_DE\html\SysAdminGd\*"
1034 SetOutPath "$INSTDIR\Documentation\html"
1035 File "..\..\doc\install\Documentation\es_ES\html\*"
1036 SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1037 ;File "..\..\doc\install\Documentation\es_ES\html\CmdRef\*"
1038 SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1039 ;File "..\..\doc\install\Documentation\es_ES\html\SysAdminGd\*"
1043 SetOutPath "$INSTDIR\Documentation\html"
1044 File "..\..\doc\install\Documentation\ja_JP\html\*"
1045 SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1046 File "..\..\doc\install\Documentation\ja_JP\html\CmdRef\*"
1047 SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1048 ;File "..\..\doc\install\Documentation\ja_JP\html\SysAdminGd\*"
1052 SetOutPath "$INSTDIR\Documentation\html"
1053 File "..\..\doc\install\Documentation\ko_KR\html\*"
1054 ;SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1055 ;File "..\..\doc\install\Documentation\ko_KR\html\CmdRef\*"
1056 SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1057 File "..\..\doc\install\Documentation\ko_KR\html\SysAdminGd\*"
1061 SetOutPath "$INSTDIR\Documentation\html"
1062 File "..\..\doc\install\Documentation\pt_BR\html\*"
1063 ;SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1064 ;File "..\..\doc\install\Documentation\pt_BR\html\CmdRef\*"
1065 ;SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1066 ;File "..\..\doc\install\Documentation\pt_BR\html\SysAdminGd\*"
1070 SetOutPath "$INSTDIR\Documentation\html"
1071 File "..\..\doc\install\Documentation\zh_CN\html\*"
1072 ;SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1073 ;File "..\..\doc\install\Documentation\zh_CN\html\CmdRef\*"
1074 ;SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1075 ;File "..\..\doc\install\Documentation\zh_CN\html\SysAdminGd\*"
1079 SetOutPath "$INSTDIR\Documentation\html"
1080 File "..\..\doc\install\Documentation\zh_TW\html\*"
1081 ;SetOutPath "$INSTDIR\Documentation\html\CmdRef"
1082 ;File "..\..\doc\install\Documentation\zh_TW\html\CmdRef\*"
1083 ;SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
1084 ;File "..\..\doc\install\Documentation\zh_TW\html\SysAdminGd\*"
1089 ;Store install folder
1090 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation" "" $INSTDIR
1091 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\CurrentVersion" "VersionString" ${AFS_VERSION}
1092 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\CurrentVersion" "MajorVersion" ${AFS_MAJORVERSION}
1093 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\CurrentVersion" "MinorVersion" ${AFS_MINORVERSION}
1094 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\CurrentVersion" "PatchLevel" ${AFS_PATCHLEVEL}
1095 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\${AFS_VERSION}" "VersionString" ${AFS_VERSION}
1096 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\${AFS_VERSION}" "MajorVersion" ${AFS_MAJORVERSION}
1097 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\${AFS_VERSION}" "MinorVersion" ${AFS_MINORVERSION}
1098 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\${AFS_VERSION}" "PatchLevel" ${AFS_PATCHLEVEL}
1100 WriteUninstaller "$INSTDIR\Uninstall.exe"
1101 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
1102 CreateShortCut "$SMPROGRAMS\OpenAFS\Uninstall OpenAFS.lnk" "$INSTDIR\Uninstall.exe"
1103 Call AFSCommon.Install
1107 Section /o "Software Development Kit (SDK)" secSDK
1109 SetOutPath "$INSTDIR\SDK\lib"
1110 File /r "${AFS_CLIENT_LIBDIR}\*.*"
1112 SetOutPath "$INSTDIR\SDK\Include"
1113 File /r "${AFS_BUILD_INCDIR}\*.*"
1116 SetOutPath "$INSTDIR\SDK\Sample"
1117 File "..\..\afsd\sample\token.c"
1119 ;Store install folder
1120 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS SDK" "" $INSTDIR
1121 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS SDK\CurrentVersion" "VersionString" ${AFS_VERSION}
1122 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\CurrentVersion" "MajorVersion" ${AFS_MAJORVERSION}
1123 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\CurrentVersion" "MinorVersion" ${AFS_MINORVERSION}
1124 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\CurrentVersion" "PatchLevel" ${AFS_PATCHLEVEL}
1125 WriteRegStr HKLM "${AFS_REGKEY_ROOT}\AFS SDK\${AFS_VERSION}" "VersionString" ${AFS_VERSION}
1126 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\${AFS_VERSION}" "MajorVersion" ${AFS_MAJORVERSION}
1127 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\${AFS_VERSION}" "MinorVersion" ${AFS_MINORVERSION}
1128 WriteRegDWORD HKLM "${AFS_REGKEY_ROOT}\AFS SDK\${AFS_VERSION}" "PatchLevel" ${AFS_PATCHLEVEL}
1130 WriteUninstaller "$INSTDIR\Uninstall.exe"
1131 WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayIcon" "$INSTDIR\Uninstall.exe,0"
1133 SetOutPath "$SMPROGRAMS\OpenAFS"
1134 CreateShortCut "$SMPROGRAMS\OpenAFS\Uninstall OpenAFS.lnk" "$INSTDIR\Uninstall.exe"
1136 Call AFSCommon.Install
1140 Section /o "Debug symbols" secDebug
1141 SectionGetFlags ${secClient} $R0
1142 IntOp $R0 $R0 & ${SF_SELECTED}
1143 IntCmp $R0 ${SF_SELECTED} +1 DoServer
1145 ; Do client components
1146 SetOutPath "$INSTDIR\Client\Program"
1147 File "${AFS_CLIENT_BUILDDIR}\afsshare.pdb"
1148 File "${AFS_CLIENT_BUILDDIR}\libosi.pdb"
1149 File "${AFS_CLIENT_BUILDDIR}\libafsconf.pdb"
1150 File "${AFS_CLIENT_BUILDDIR}\klog.pdb"
1151 File "${AFS_CLIENT_BUILDDIR}\tokens.pdb"
1152 File "${AFS_CLIENT_BUILDDIR}\unlog.pdb"
1153 File "${AFS_CLIENT_BUILDDIR}\fs.pdb"
1154 File "${AFS_CLIENT_BUILDDIR}\afsdacl.pdb"
1155 File "${AFS_CLIENT_BUILDDIR}\cmdebug.pdb"
1156 File "${AFS_CLIENT_BUILDDIR}\aklog.pdb"
1157 File "${AFS_CLIENT_BUILDDIR}\afscreds.pdb"
1158 File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext.pdb"
1159 File "${AFS_CLIENT_BUILDDIR}\afsd_service.pdb"
1160 File "${AFS_CLIENT_BUILDDIR}\symlink.pdb"
1161 File "${AFS_DESTDIR}\bin\kpasswd.pdb"
1162 File "${AFS_DESTDIR}\bin\pts.pdb"
1163 File "${AFS_SERVER_BUILDDIR}\bos.pdb"
1164 File "${AFS_SERVER_BUILDDIR}\kas.pdb"
1165 File "${AFS_SERVER_BUILDDIR}\vos.pdb"
1166 File "${AFS_SERVER_BUILDDIR}\udebug.pdb"
1167 File "${AFS_DESTDIR}\bin\translate_et.pdb"
1168 File "${AFS_DESTDIR}\etc\rxdebug.pdb"
1169 File "${AFS_DESTDIR}\etc\backup.pdb"
1170 File "${AFS_CLIENT_BUILDDIR}\afs_cpa.pdb"
1171 File "${AFS_CLIENT_BUILDDIR}\afscred.pdb"
1172 File "${AFS_CLIENT_BUILDDIR}\afslogon.pdb"
1173 File "${AFS_CLIENT_BUILDDIR}\afscpcc.pdb"
1175 SetOutPath "$SYSDIR"
1178 SectionGetFlags ${secServer} $R0
1179 IntOp $R0 $R0 & ${SF_SELECTED}
1180 IntCmp $R0 ${SF_SELECTED} +1 DoControl
1182 ; Do server components
1183 SetOutPath "$INSTDIR\Server\usr\afs\bin"
1184 File "${AFS_SERVER_BUILDDIR}\afskill.pdb"
1185 File "${AFS_SERVER_BUILDDIR}\afssvrcfg.pdb"
1186 File "${AFS_SERVER_BUILDDIR}\asetkey.pdb"
1187 File "${AFS_SERVER_BUILDDIR}\bosctlsvc.pdb"
1188 File "${AFS_SERVER_BUILDDIR}\bosserver.pdb"
1189 File "${AFS_SERVER_BUILDDIR}\buserver.pdb"
1190 File "${AFS_ETC_BUILDDIR}\butc.pdb"
1191 File "${AFS_SERVER_BUILDDIR}\fileserver.pdb"
1192 File "${AFS_ETC_BUILDDIR}\fms.pdb"
1193 File "${AFS_SERVER_BUILDDIR}\kaserver.pdb"
1194 File "${AFS_SERVER_BUILDDIR}\ptserver.pdb"
1195 File "${AFS_SERVER_BUILDDIR}\salvager.pdb"
1196 File "${AFS_SERVER_BUILDDIR}\upclient.pdb"
1197 File "${AFS_SERVER_BUILDDIR}\upserver.pdb"
1198 File "${AFS_SERVER_BUILDDIR}\vlserver.pdb"
1199 File "${AFS_SERVER_BUILDDIR}\volinfo.pdb"
1200 File "${AFS_SERVER_BUILDDIR}\volserver.pdb"
1202 ; Do server common components
1203 File "${AFS_SERVER_BUILDDIR}\afsvosadmin.pdb"
1204 File "${AFS_SERVER_BUILDDIR}\afsbosadmin.pdb"
1205 File "${AFS_SERVER_BUILDDIR}\afscfgadmin.pdb"
1206 File "${AFS_SERVER_BUILDDIR}\afskasadmin.pdb"
1207 File "${AFS_SERVER_BUILDDIR}\afsptsadmin.pdb"
1209 SetOutPath "$SYSDIR"
1210 File "${AFS_SERVER_BUILDDIR}\afsserver.pdb"
1212 ; Do control center components
1214 SectionGetFlags ${secControl} $R0
1215 IntOp $R0 $R0 & ${SF_SELECTED}
1216 IntCmp $R0 ${SF_SELECTED} +1 DoCommon
1218 SetOutPath "$INSTDIR\Control Center"
1219 File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager.pdb"
1220 File "${AFS_SERVER_BUILDDIR}\TaAfsAdmSvr.pdb"
1221 File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager.pdb"
1224 SetOutPath "$INSTDIR\Common"
1226 File "${SYSTEMDIR}\msvcr80d.pdb"
1227 File "${SYSTEMDIR}\msvcp80d.pdb"
1228 File "${SYSTEMDIR}\mfc80d.pdb"
1231 File "${SYSTEMDIR}\msvcr71d.pdb"
1232 File "${SYSTEMDIR}\msvcp71d.pdb"
1233 File "${SYSTEMDIR}\mfc71d.pdb"
1236 File "${SYSTEMDIR}\msvcr70d.pdb"
1237 File "${SYSTEMDIR}\msvcp70d.pdb"
1238 File "${SYSTEMDIR}\mfc70d.pdb"
1240 File "${SYSTEMDIR}\mfc42d.pdb"
1241 File "${SYSTEMDIR}\msvcp60d.pdb"
1242 File "${SYSTEMDIR}\msvcrtd.pdb"
1248 SetOutPath "$INSTDIR\Common"
1249 File "${AFS_CLIENT_BUILDDIR}\afs_config.pdb"
1250 File "${AFS_SERVER_BUILDDIR}\afsadminutil.pdb"
1251 File "${AFS_DESTDIR}\lib\afsauthent.pdb"
1252 File "${AFS_DESTDIR}\lib\afspthread.pdb"
1253 File "${AFS_DESTDIR}\lib\afsrpc.pdb"
1254 File "${AFS_SERVER_BUILDDIR}\afsclientadmin.pdb"
1255 File "${AFS_SERVER_BUILDDIR}\afsprocmgmt.pdb"
1256 File "${AFS_SERVER_BUILDDIR}\afsvosadmin.pdb"
1257 File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib.pdb"
1258 File "${AFS_SERVER_BUILDDIR}\afsvosadmin.pdb"
1259 File "${AFS_SERVER_BUILDDIR}\afsbosadmin.pdb"
1260 File "${AFS_SERVER_BUILDDIR}\afscfgadmin.pdb"
1261 File "${AFS_SERVER_BUILDDIR}\afskasadmin.pdb"
1262 File "${AFS_SERVER_BUILDDIR}\afsptsadmin.pdb"
1267 ;Display the Finish header
1268 ;Insert this macro after the sections if you are not using a finish page
1269 ;!insertmacro MUI_SECTIONS_FINISHHEADER
1271 ;--------------------------------
1272 ;Installer Functions
1276 !insertmacro MUI_LANGDLL_DISPLAY
1278 ; Set the default install options
1283 StrCmp $R0 "true" contInstall
1285 MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST "You must be an administrator of this machine to install this software."
1290 ; Set Install Type text
1291 InstTypeSetText 0 "AFS Client"
1292 InstTypeSetText 1 "AFS Administrator"
1293 InstTypeSetText 2 "AFS Server"
1294 InstTypeSetText 3 "AFS Developer Tools"
1296 ; Set sections in each install type
1297 SectionSetInstTypes 0 15 ; AFS Client
1298 SectionSetInstTypes 1 15 ; Loopback adapter
1299 SectionSetInstTypes 2 4 ; AFS Server
1300 SectionSetInstTypes 3 6 ; AFS Control Center
1301 SectionSetInstTypes 4 14 ; Documentation
1302 SectionSetInstTypes 5 8 ; SDK
1304 SectionSetInstTypes 6 8 ; Debug symbols
1306 SectionSetInstTypes 6 15 ; Debug symbols
1309 ; Check that RPC functions are installed (I believe any one of these can be present for
1311 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_np"
1312 StrCmp $R0 "rpcrt4.dll" contInstall2
1313 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_ip_tcp"
1314 StrCmp $R0 "rpcrt4.dll" contInstall2
1315 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncadg_ip_udp"
1316 StrCmp $R0 "rpcrt4.dll" contInstall2
1317 ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\RPC\ClientProtocols" "ncacn_http"
1318 StrCmp $R0 "rpcrt4.dll" contInstall2
1320 MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST "An error was detected with your Windows RPC installation. Please make sure Windows RPC is installed before installing OpenAFS."
1325 ; If the Loopback is already installed, we mark the option OFF and Read Only
1326 ; so the user can not select it.
1327 Call afs.isLoopbackInstalled
1328 IntCmp $R1 0 SkipLoop
1329 SectionGetFlags ${secLoopback} $0
1330 IntOp $0 $0 & ${SECTION_OFF}
1331 IntOp $0 $0 | ${SF_RO}
1332 SectionSetFlags ${secLoopback} $0
1333 ; And disable the loopback in the types
1334 SectionSetInstTypes 1 0 ; Loopback adapter
1337 ; Never install debug symbols unless explicitly selected, except in DEBUG mode
1339 SectionGetFlags ${secDebug} $0
1340 IntOp $0 $0 & ${SECTION_OFF}
1341 SectionSetFlags ${secDebug} $0
1343 SectionGetFlags ${secDebug} $0
1344 IntOp $0 $0 | ${SF_SELECTED}
1345 SectionSetFlags ${secDebug} $0
1347 ; Our logic should be like this.
1348 ; 1) If no AFS components are installed, we do a clean install with default options. (Client/Docs)
1349 ; 2) If existing modules are installed, we keep them selected
1350 ; 3) If it is an upgrade, we set the text accordingly, else we mark it as a re-install
1352 Call IsAnyAFSInstalled
1354 StrCmp $R0 "0" DefaultOptions
1356 Call ShouldClientInstall
1359 ; Check if it was an IBM/Transarc version
1360 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon" "DisplayName"
1361 StrCmp $R0 "IBM AFS Client" DoIBM
1362 StrCmp $R0 "Transarc AFS Client" DoIBM
1365 StrCmp $R2 "0" NoClient
1366 StrCmp $R2 "1" ReinstallClient
1367 StrCmp $R2 "2" UpgradeClient
1368 StrCmp $R2 "3" DowngradeClient
1371 ReadRegDWORD $R0 HKLM "Software\TransarcCorporation\AFS Client\CurrentVersion" "MajorVersion"
1372 StrCmp $R0 "3" +1 NotIBM
1377 SectionGetFlags ${secClient} $0
1378 IntOp $0 $0 | ${SF_SELECTED}
1379 SectionSetFlags ${secClient} $0
1380 ;# !insertmacro SelectSection ${secClient}
1383 ;StrCpy $1 ${secClient} ; Gotta remember which section we are at now...
1384 SectionGetFlags ${secClient} $0
1385 IntOp $0 $0 & ${SECTION_OFF}
1386 SectionSetFlags ${secClient} $0
1389 SectionGetFlags ${secClient} $0
1390 IntOp $0 $0 | ${SF_SELECTED}
1391 SectionSetFlags ${secClient} $0
1392 SectionSetText ${secClient} $(UPGRADE_CLIENT)
1395 SectionGetFlags ${secClient} $0
1396 IntOp $0 $0 | ${SF_SELECTED}
1397 SectionSetFlags ${secClient} $0
1398 SectionSetText ${secClient} $(REINSTALL_CLIENT)
1401 SectionGetFlags ${secClient} $0
1402 IntOp $0 $0 | ${SF_SELECTED}
1403 SectionSetFlags ${secClient} $0
1404 SectionSetText ${secClient} $(REINSTALL_CLIENT)
1410 Call ShouldServerInstall
1412 StrCmp $R2 "0" NoServer
1413 StrCmp $R2 "1" ReinstallServer
1414 StrCmp $R2 "2" UpgradeServer
1415 StrCmp $R2 "3" DowngradeServer
1417 SectionGetFlags ${secServer} $0
1418 IntOp $0 $0 | ${SF_SELECTED}
1419 SectionSetFlags ${secServer} $0
1420 ;# !insertmacro UnselectSection ${secServer}
1424 SectionGetFlags ${secServer} $0
1425 IntOp $0 $0 | ${SF_SELECTED}
1426 SectionSetFlags ${secServer} $0
1427 SectionSetText ${secServer} $(UPGRADE_SERVER)
1431 SectionGetFlags ${secServer} $0
1432 IntOp $0 $0 | ${SF_SELECTED}
1433 SectionSetFlags ${secServer} $0
1434 SectionSetText ${secServer} $(REINSTALL_SERVER)
1438 SectionGetFlags ${secServer} $0
1439 IntOp $0 $0 | ${SF_SELECTED}
1440 SectionSetFlags ${secServer} $0
1441 SectionSetText ${secServer} $(REINSTALL_SERVER)
1445 SectionGetFlags ${secServer} $0
1446 IntOp $0 $0 & ${SECTION_OFF}
1447 SectionSetFlags ${secServer} $0
1448 ;# !insertmacro UnselectSection ${secServer}
1452 ; Check control center
1453 Call IsControlInstalled
1455 StrCmp $R2 "0" NoControl
1457 SectionGetFlags ${secControl} $0
1458 IntOp $0 $0 | ${SF_SELECTED}
1459 SectionSetFlags ${secControl} $0
1463 SectionGetFlags ${secControl} $0
1464 IntOp $0 $0 & ${SECTION_OFF}
1465 SectionSetFlags ${secControl} $0
1466 ;# !insertmacro UnselectSection ${secControl}
1469 ; Check Documentation
1470 Call IsDocumentationInstalled
1472 StrCmp $R2 "0" NoDocs
1473 SectionGetFlags ${secDocs} $0
1474 IntOp $0 $0 | ${SF_SELECTED}
1475 SectionSetFlags ${secDocs} $0
1479 SectionGetFlags ${secDocs} $0
1480 IntOp $0 $0 & ${SECTION_OFF}
1481 SectionSetFlags ${secDocs} $0
1484 ; To check the SDK, we simply look to see if the files exist. If they do,
1485 ; the SDK is installed. If not, we don't need to push it on the user.
1486 ; If they are there, we want to make sure they match the installed version.
1488 IfFileExists "$INSTDIR\SDK\Include\main.h" +1 NoSDK
1489 SectionGetFlags ${secSDK} $0
1490 IntOp $0 $0 | ${SF_SELECTED}
1491 SectionSetFlags ${secSDK} $0
1495 SectionGetFlags ${secSDK} $0
1496 IntOp $0 $0 & ${SECTION_OFF}
1497 SectionSetFlags ${secSDK} $0
1502 SectionGetFlags ${secClient} $0
1503 IntOp $0 $0 | ${SF_SELECTED}
1504 SectionSetFlags ${secClient} $0
1506 ; Server NOT selected
1507 SectionGetFlags ${secServer} $0
1508 IntOp $0 $0 & ${SECTION_OFF}
1509 SectionSetFlags ${secServer} $0
1511 ; Control Center NOT selected
1512 SectionGetFlags ${secControl} $0
1513 IntOp $0 $0 & ${SECTION_OFF}
1514 SectionSetFlags ${secControl} $0
1515 ;# !insertmacro UnselectSection ${secControl}
1517 ; Documentation NOT selected
1518 SectionGetFlags ${secDocs} $0
1519 IntOp $0 $0 & ${SECTION_OFF}
1520 SectionSetFlags ${secDocs} $0
1521 ;# !insertmacro UnselectSection ${secDocs}
1524 SectionGetFlags ${secSDK} $0
1525 IntOp $0 $0 & ${SECTION_OFF}
1526 SectionSetFlags ${secSDK} $0
1527 ;# !insertmacro UnselectSection ${secSDK}
1536 ; See if we can set a default installation path...
1537 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "PathName"
1538 StrCmp $R0 "" TryServer
1542 ; Work around bug in 1.3.5000, 1.3.5100, 1.3.5200, 1.3.5201, 1.3.5299 installers...
1543 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "MajorVersion"
1544 StrCmp $R0 "1" +1 SkipParent
1545 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "MinorVersion"
1546 StrCmp $R0 "3" +1 SkipParent
1547 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion" "PatchLevel"
1548 StrCmp $R0 "5000" UpParent
1549 StrCmp $R0 "5100" UpParent
1550 StrCmp $R0 "5200" UpParent
1551 StrCmp $R0 "5201" UpParent
1552 StrCmp $R0 "5299" UpParent
1564 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion" "PathName"
1565 StrCmp $R0 "" TryControl
1573 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion" "PathName"
1581 File /oname=$0 CellServPage.ini
1583 File /oname=$1 AFSCell.ini
1585 File /oname=$2 AFSCreds.ini
1586 ;File /oname=$1 ConfigURL.ini
1591 ;--------------------------------
1592 ; These are our cleanup functions
1593 Function .onInstFailed
1598 Function .onInstSuccess
1604 ;--------------------------------
1607 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
1608 !insertmacro MUI_DESCRIPTION_TEXT ${secServer} $(DESC_secServer)
1609 !insertmacro MUI_DESCRIPTION_TEXT ${secClient} $(DESC_secClient)
1610 !insertmacro MUI_DESCRIPTION_TEXT ${secControl} $(DESC_secControl)
1611 !insertmacro MUI_DESCRIPTION_TEXT ${secDocs} $(DESC_secDocs)
1612 !insertmacro MUI_DESCRIPTION_TEXT ${secSDK} $(DESC_secSDK)
1613 !insertmacro MUI_DESCRIPTION_TEXT ${secLoopback} $(DESC_secLoopback)
1614 !insertmacro MUI_DESCRIPTION_TEXT ${secDebug} $(DESC_secDebug)
1615 !insertmacro MUI_FUNCTION_DESCRIPTION_END
1617 ;--------------------------------
1618 ;Uninstaller Section
1621 ; Make sure the user REALLY wants to do this, unless they did a silent uninstall, in which case...let them!
1622 IfSilent StartRemove ; New in v2.0b4
1623 MessageBox MB_YESNO "Are you sure you want to remove OpenAFS from this machine?" IDYES StartRemove
1628 SetShellVarContext all
1629 ; Stop the running processes
1631 File /oname=$R0 "${AFS_WININSTALL_DIR}\Killer.exe"
1632 nsExec::Exec '$R0 afscreds.exe'
1633 Exec "afscreds.exe -z"
1634 ; in case we are upgrading an old version that does not support -z
1636 nsExec::Exec '$R0 afscreds.exe'
1638 nsExec::Exec '$R0 krbcc32s.exe'
1641 ; Delete the AFS service
1643 File /oname=$R0 "${AFS_WININSTALL_DIR}\Service.exe"
1644 nsExec::Exec "net stop TransarcAFSDaemon"
1645 nsExec::Exec "net stop TransarcAFSServer"
1646 nsExec::Exec '$R0 u TransarcAFSDaemon'
1647 ; After we stop the service, but before we delete it, we have to remove the volume data
1648 ; This is because the storage locations are in the registry under the service key.
1649 ; Call un.RemoveAFSVolumes
1650 nsExec::Exec '$R0 u TransarcAFSServer'
1653 Call un.RemoveProvider
1655 Push "$INSTDIR\Client\Program"
1656 Call un.RemoveFromPath
1657 Push "$INSTDIR\Common"
1658 Call un.RemoveFromPath
1660 Push "$INSTDIR\kfw\bin"
1661 Call un.RemoveFromPath
1664 ; Delete documentation
1665 Delete "$INSTDIR\Documentation\README.TXT"
1666 Delete "$INSTDIR\Documentation\html\*"
1667 Delete "$INSTDIR\Documentation\html\index_files\*"
1668 Delete "$INSTDIR\Documentation\html\CmdRef\*"
1669 Delete "$INSTDIR\Documentation\html\InstallGd\*"
1670 Delete "$INSTDIR\Documentation\html\ReleaseNotes\*"
1671 Delete "$INSTDIR\Documentation\html\ReleaseNotes\logo_files\*"
1672 Delete "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files\*"
1673 Delete "$INSTDIR\Documentation\html\SysAdminGd\*"
1675 Delete /REBOOTOK "$INSTDIR\Common\afs_config.exe"
1676 Delete /REBOOTOK "$INSTDIR\Common\afs_shl_ext.dll"
1677 Delete /REBOOTOK "$INSTDIR\Common\afsadminutil.dll"
1678 Delete /REBOOTOK "$INSTDIR\Common\lib\afsauthent.dll"
1679 Delete /REBOOTOK "$INSTDIR\Common\lib\afspthread.dll"
1680 Delete /REBOOTOK "$INSTDIR\Common\lib\afsrpc.dll"
1681 Delete /REBOOTOK "$INSTDIR\Common\afsclientadmin.dll"
1682 Delete /REBOOTOK "$INSTDIR\Common\afsprocmgmt.dll"
1683 Delete /REBOOTOK "$INSTDIR\Common\afsvosadmin.dll"
1684 Delete /REBOOTOK "$INSTDIR\Common\TaAfsAppLib.dll"
1685 Delete /REBOOTOK "$INSTDIR\Common\afsvosadmin.dll"
1686 Delete /REBOOTOK "$INSTDIR\Common\afsbosadmin.dll"
1687 Delete /REBOOTOK "$INSTDIR\Common\afscfgadmin.dll"
1688 Delete /REBOOTOK "$INSTDIR\Common\afskasadmin.dll"
1689 Delete /REBOOTOK "$INSTDIR\Common\afsptsadmin.dll"
1691 Delete /REBOOTOK "$INSTDIR\Common\afs_config.pdb"
1692 Delete /REBOOTOK "$INSTDIR\Common\afs_shl_ext.pdb"
1693 Delete /REBOOTOK "$INSTDIR\Common\afsadminutil.pdb"
1694 Delete /REBOOTOK "$INSTDIR\Common\lib\afsauthent.pdb"
1695 Delete /REBOOTOK "$INSTDIR\Common\lib\afspthread.pdb"
1696 Delete /REBOOTOK "$INSTDIR\Common\lib\afsrpc.pdb"
1697 Delete /REBOOTOK "$INSTDIR\Common\afsclientadmin.pdb"
1698 Delete /REBOOTOK "$INSTDIR\Common\afsprocmgmt.pdb"
1699 Delete /REBOOTOK "$INSTDIR\Common\afsvosadmin.pdb"
1700 Delete /REBOOTOK "$INSTDIR\Common\TaAfsAppLib.pdb"
1701 Delete /REBOOTOK "$INSTDIR\Common\afsvosadmin.pdb"
1702 Delete /REBOOTOK "$INSTDIR\Common\afsbosadmin.pdb"
1703 Delete /REBOOTOK "$INSTDIR\Common\afscfgadmin.pdb"
1704 Delete /REBOOTOK "$INSTDIR\Common\afskasadmin.pdb"
1705 Delete /REBOOTOK "$INSTDIR\Common\afsptsadmin.pdb"
1708 Delete /REBOOTOK "$INSTDIR\bin\msvcr80d.dll"
1709 Delete /REBOOTOK "$INSTDIR\bin\msvcr80d.pdb"
1710 Delete /REBOOTOK "$INSTDIR\bin\msvcp80d.dll"
1711 Delete /REBOOTOK "$INSTDIR\bin\msvcp80d.pdb"
1712 Delete /REBOOTOK "$INSTDIR\bin\mfc80d.dll"
1713 Delete /REBOOTOK "$INSTDIR\bin\mfc80d.pdb"
1716 Delete /REBOOTOK "$INSTDIR\bin\msvcr71d.dll"
1717 Delete /REBOOTOK "$INSTDIR\bin\msvcr71d.pdb"
1718 Delete /REBOOTOK "$INSTDIR\bin\msvcp71d.dll"
1719 Delete /REBOOTOK "$INSTDIR\bin\msvcp71d.pdb"
1720 Delete /REBOOTOK "$INSTDIR\bin\mfc71d.dll"
1721 Delete /REBOOTOK "$INSTDIR\bin\mfc71d.pdb"
1724 Delete /REBOOTOK "$INSTDIR\bin\msvcr70d.dll"
1725 Delete /REBOOTOK "$INSTDIR\bin\msvcr70d.pdb"
1726 Delete /REBOOTOK "$INSTDIR\bin\msvcp70d.dll"
1727 Delete /REBOOTOK "$INSTDIR\bin\msvcp70d.pdb"
1728 Delete /REBOOTOK "$INSTDIR\bin\mfc70d.dll"
1729 Delete /REBOOTOK "$INSTDIR\bin\mfc70d.pdb"
1731 Delete /REBOOTOK "$INSTDIR\bin\mfc42d.dll"
1732 Delete /REBOOTOK "$INSTDIR\bin\mfc42d.pdb"
1733 Delete /REBOOTOK "$INSTDIR\bin\msvcp60d.dll"
1734 Delete /REBOOTOK "$INSTDIR\bin\msvcp60d.pdb"
1735 Delete /REBOOTOK "$INSTDIR\bin\msvcrtd.dll"
1736 Delete /REBOOTOK "$INSTDIR\bin\msvcrtd.pdb"
1742 Delete /REBOOTOK "$INSTDIR\bin\mfc80.dll"
1743 Delete /REBOOTOK "$INSTDIR\bin\msvcr80.dll"
1744 Delete /REBOOTOK "$INSTDIR\bin\msvcp80.dll"
1745 Delete /REBOOTOK "$INSTDIR\bin\MFC80CHS.DLL"
1746 Delete /REBOOTOK "$INSTDIR\bin\MFC80CHT.DLL"
1747 Delete /REBOOTOK "$INSTDIR\bin\MFC80DEU.DLL"
1748 Delete /REBOOTOK "$INSTDIR\bin\MFC80ENU.DLL"
1749 Delete /REBOOTOK "$INSTDIR\bin\MFC80ESP.DLL"
1750 Delete /REBOOTOK "$INSTDIR\bin\MFC80FRA.DLL"
1751 Delete /REBOOTOK "$INSTDIR\bin\MFC80ITA.DLL"
1752 Delete /REBOOTOK "$INSTDIR\bin\MFC80JPN.DLL"
1753 Delete /REBOOTOK "$INSTDIR\bin\MFC80KOR.DLL"
1756 Delete /REBOOTOK "$INSTDIR\bin\mfc71.dll"
1757 Delete /REBOOTOK "$INSTDIR\bin\msvcr71.dll"
1758 Delete /REBOOTOK "$INSTDIR\bin\msvcp71.dll"
1759 Delete /REBOOTOK "$INSTDIR\bin\MFC71CHS.DLL"
1760 Delete /REBOOTOK "$INSTDIR\bin\MFC71CHT.DLL"
1761 Delete /REBOOTOK "$INSTDIR\bin\MFC71DEU.DLL"
1762 Delete /REBOOTOK "$INSTDIR\bin\MFC71ENU.DLL"
1763 Delete /REBOOTOK "$INSTDIR\bin\MFC71ESP.DLL"
1764 Delete /REBOOTOK "$INSTDIR\bin\MFC71FRA.DLL"
1765 Delete /REBOOTOK "$INSTDIR\bin\MFC71ITA.DLL"
1766 Delete /REBOOTOK "$INSTDIR\bin\MFC71JPN.DLL"
1767 Delete /REBOOTOK "$INSTDIR\bin\MFC71KOR.DLL"
1770 Delete /REBOOTOK "$INSTDIR\bin\mfc70.dll"
1771 Delete /REBOOTOK "$INSTDIR\bin\msvcr70.dll"
1772 Delete /REBOOTOK "$INSTDIR\bin\msvcp70.dll"
1773 Delete /REBOOTOK "$INSTDIR\bin\MFC70CHS.DLL"
1774 Delete /REBOOTOK "$INSTDIR\bin\MFC70CHT.DLL"
1775 Delete /REBOOTOK "$INSTDIR\bin\MFC70DEU.DLL"
1776 Delete /REBOOTOK "$INSTDIR\bin\MFC70ENU.DLL"
1777 Delete /REBOOTOK "$INSTDIR\bin\MFC70ESP.DLL"
1778 Delete /REBOOTOK "$INSTDIR\bin\MFC70FRA.DLL"
1779 Delete /REBOOTOK "$INSTDIR\bin\MFC70ITA.DLL"
1780 Delete /REBOOTOK "$INSTDIR\bin\MFC70JPN.DLL"
1781 Delete /REBOOTOK "$INSTDIR\bin\MFC70KOR.DLL"
1783 Delete /REBOOTOK "$INSTDIR\bin\mfc42.dll"
1784 Delete /REBOOTOK "$INSTDIR\bin\msvcp60.dll"
1785 Delete /REBOOTOK "$INSTDIR\bin\msvcrt.dll"
1792 ; IfFileExists "$INSTDIR\Client\CellServDB" CellExists SkipDelAsk
1794 MessageBox MB_YESNO "Would you like to keep your configuration information?" IDYES SkipDel
1795 Delete "$INSTDIR\Client\CellServDB"
1797 ; Only remove krb5.ini if KfW was installed
1799 Delete "$WINDIR\krb5.ini"
1801 Delete "$INSTDIR\Client\afsdns.ini"
1804 File /oname=$R0 "${AFS_WININSTALL_DIR}\AdminGroup.exe"
1805 nsExec::Exec '$R0 -remove'
1808 Delete "$WINDIR\afsd_init.log"
1809 Delete "$INSTDIR\Uninstall.exe"
1812 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\afskill.exe"
1813 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\afssvrcfg.exe"
1814 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\bosctlsvc.exe"
1815 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\bosserver.exe"
1816 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\buserver.exe"
1817 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\butc.exe"
1818 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\fileserver.exe"
1819 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\fms.exe"
1820 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\kaserver.exe"
1821 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\ptserver.exe"
1822 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\salvager.exe"
1823 Delete "$INSTDIR\Server\usr\afs\bin\ServerUninst.dll"
1824 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\upclient.exe"
1825 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\upserver.exe"
1826 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\vlserver.exe"
1827 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\volinfo.exe"
1828 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\volserver.exe"
1830 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\afskill.pdb"
1831 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\afssvrcfg.pdb"
1832 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\bosctlsvc.pdb"
1833 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\bosserver.pdb"
1834 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\buserver.pdb"
1835 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\butc.pdb"
1836 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\fileserver.pdb"
1837 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\fms.pdb"
1838 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\kaserver.pdb"
1839 Delete /REBOOTOK "$INSTDIR\Server\usr\afs\bin\ptserver.pdb"
1840 Delete "$INSTDIR\Server\usr\afs\bin\salvager.pdb"
1841 Delete "$INSTDIR\Server\usr\afs\bin\ServerUninst.pdb"
1842 Delete "$INSTDIR\Server\usr\afs\bin\upclient.pdb"
1843 Delete "$INSTDIR\Server\usr\afs\bin\upserver.pdb"
1844 Delete "$INSTDIR\Server\usr\afs\bin\vlserver.pdb"
1845 Delete "$INSTDIR\Server\usr\afs\bin\volinfo.pdb"
1846 Delete "$INSTDIR\Server\usr\afs\bin\volserver.pdb"
1848 RMDir /r "$INSTDIR\Server\usr\afs\bin"
1849 ; do not delete the server configuration files
1850 ; or we will lose the volumes and authentication
1852 ;RmDir /r "$INSTDIR\Server\usr\afs\etc\logs"
1853 ;RmDir /r "$INSTDIR\Server\usr\afs\etc"
1854 ;RmDir /r "$INSTDIR\Server\usr\afs\local"
1855 ;RMDIR /r "$INSTDIR\Server\usr\afs\logs"
1857 Delete /REBOOTOK "$SYSDIR\afsserver.cpl"
1858 Delete /REBOOTOK "$INSTDIR\Client\Program\afs_cpa.cpl"
1859 Delete /REBOOTOK "$INSTDIR\Client\Program\afslogon.dll"
1860 Delete /REBOOTOK "$INSTDIR\Client\Program\afscpcc.exe"
1862 Delete /REBOOTOK "$SYSDIR\afsserver.pdb"
1863 Delete /REBOOTOK "$INSTDIR\Client\Program\afs_cpa.pdb"
1864 Delete /REBOOTOK "$INSTDIR\Client\Program\afslogon.pdb"
1865 Delete /REBOOTOK "$INSTDIR\Client\Program\afscpcc.pdb"
1867 RMDir /r "$INSTDIR\Documentation\html\CmdRef"
1868 RMDir /r "$INSTDIR\Documentation\html\InstallGd"
1869 RMDir /r "$INSTDIR\Documentation\html\ReleaseNotes"
1870 RMDir /r "$INSTDIR\Documentation\html\SysAdminGd"
1871 RMDIr /r "$INSTDIR\Documentation\html"
1873 RMDir "$INSTDIR\Documentation"
1874 ; Delete DOC short cut
1875 Delete /REBOOTOK "$INSTDIR\Client\Program\afscreds.exe"
1876 Delete /REBOOTOK "$INSTDIR\Client\Program\afscreds.pdb"
1878 Delete /REBOOTOK "$INSTDIR\SDK\Include\*"
1879 Delete /REBOOTOK "$INSTDIR\SDK\Include\afs\*"
1880 Delete /REBOOTOK "$INSTDIR\SDK\Include\rx\*"
1881 Delete /REBOOTOK "$INSTDIR\SDK\Sample\*"
1882 Delete /REBOOTOK "$INSTDIR\SDK\*"
1884 RMDir "$INSTDIR\SDK\Sample"
1885 RMDir "$INSTDIR\SDK\Include\afs"
1886 RMDir "$INSTDIR\SDK\Include\rx"
1887 RMDir "$INSTDIR\SDK\Include"
1888 RMDir "$INSTDIR\SDK"
1890 Delete /REBOOTOK "$INSTDIR\Client\Program\*"
1891 Delete /REBOOTOK "$INSTDIR\Client\*"
1893 RMDir "$INSTDIR\Client\Program"
1894 RMDir "$INSTDIR\Client"
1898 Delete /REBOOTOK "$INSTDIR\bin\msvcr80d.dll"
1899 Delete /REBOOTOK "$INSTDIR\bin\msvcr80d.pdb"
1900 Delete /REBOOTOK "$INSTDIR\bin\msvcp80d.dll"
1901 Delete /REBOOTOK "$INSTDIR\bin\msvcp80d.pdb"
1902 Delete /REBOOTOK "$INSTDIR\bin\mfc80d.dll"
1903 Delete /REBOOTOK "$INSTDIR\bin\mfc80d.pdb"
1906 Delete /REBOOTOK "$INSTDIR\bin\msvcr71d.dll"
1907 Delete /REBOOTOK "$INSTDIR\bin\msvcr71d.pdb"
1908 Delete /REBOOTOK "$INSTDIR\bin\msvcp71d.dll"
1909 Delete /REBOOTOK "$INSTDIR\bin\msvcp71d.pdb"
1910 Delete /REBOOTOK "$INSTDIR\bin\mfc71d.dll"
1911 Delete /REBOOTOK "$INSTDIR\bin\mfc71d.pdb"
1914 Delete /REBOOTOK "$INSTDIR\bin\msvcr70d.dll"
1915 Delete /REBOOTOK "$INSTDIR\bin\msvcr70d.pdb"
1916 Delete /REBOOTOK "$INSTDIR\bin\msvcp70d.dll"
1917 Delete /REBOOTOK "$INSTDIR\bin\msvcp70d.pdb"
1918 Delete /REBOOTOK "$INSTDIR\bin\mfc70d.dll"
1919 Delete /REBOOTOK "$INSTDIR\bin\mfc70d.pdb"
1921 Delete /REBOOTOK "$INSTDIR\bin\mfc42d.dll"
1922 Delete /REBOOTOK "$INSTDIR\bin\mfc42d.pdb"
1923 Delete /REBOOTOK "$INSTDIR\bin\msvcp60d.dll"
1924 Delete /REBOOTOK "$INSTDIR\bin\msvcp60d.pdb"
1925 Delete /REBOOTOK "$INSTDIR\bin\msvcrtd.dll"
1926 Delete /REBOOTOK "$INSTDIR\bin\msvcrtd.pdb"
1932 Delete /REBOOTOK "$INSTDIR\bin\mfc80.dll"
1933 Delete /REBOOTOK "$INSTDIR\bin\msvcr80.dll"
1934 Delete /REBOOTOK "$INSTDIR\bin\msvcp80.dll"
1935 Delete /REBOOTOK "$INSTDIR\bin\MFC80CHS.DLL"
1936 Delete /REBOOTOK "$INSTDIR\bin\MFC80CHT.DLL"
1937 Delete /REBOOTOK "$INSTDIR\bin\MFC80DEU.DLL"
1938 Delete /REBOOTOK "$INSTDIR\bin\MFC80ENU.DLL"
1939 Delete /REBOOTOK "$INSTDIR\bin\MFC80ESP.DLL"
1940 Delete /REBOOTOK "$INSTDIR\bin\MFC80FRA.DLL"
1941 Delete /REBOOTOK "$INSTDIR\bin\MFC80ITA.DLL"
1942 Delete /REBOOTOK "$INSTDIR\bin\MFC80JPN.DLL"
1943 Delete /REBOOTOK "$INSTDIR\bin\MFC80KOR.DLL"
1946 Delete /REBOOTOK "$INSTDIR\bin\mfc71.dll"
1947 Delete /REBOOTOK "$INSTDIR\bin\msvcr71.dll"
1948 Delete /REBOOTOK "$INSTDIR\bin\msvcp71.dll"
1949 Delete /REBOOTOK "$INSTDIR\bin\MFC71CHS.DLL"
1950 Delete /REBOOTOK "$INSTDIR\bin\MFC71CHT.DLL"
1951 Delete /REBOOTOK "$INSTDIR\bin\MFC71DEU.DLL"
1952 Delete /REBOOTOK "$INSTDIR\bin\MFC71ENU.DLL"
1953 Delete /REBOOTOK "$INSTDIR\bin\MFC71ESP.DLL"
1954 Delete /REBOOTOK "$INSTDIR\bin\MFC71FRA.DLL"
1955 Delete /REBOOTOK "$INSTDIR\bin\MFC71ITA.DLL"
1956 Delete /REBOOTOK "$INSTDIR\bin\MFC71JPN.DLL"
1957 Delete /REBOOTOK "$INSTDIR\bin\MFC71KOR.DLL"
1960 Delete /REBOOTOK "$INSTDIR\bin\mfc70.dll"
1961 Delete /REBOOTOK "$INSTDIR\bin\msvcr70.dll"
1962 Delete /REBOOTOK "$INSTDIR\bin\msvcp70.dll"
1963 Delete /REBOOTOK "$INSTDIR\bin\MFC70CHS.DLL"
1964 Delete /REBOOTOK "$INSTDIR\bin\MFC70CHT.DLL"
1965 Delete /REBOOTOK "$INSTDIR\bin\MFC70DEU.DLL"
1966 Delete /REBOOTOK "$INSTDIR\bin\MFC70ENU.DLL"
1967 Delete /REBOOTOK "$INSTDIR\bin\MFC70ESP.DLL"
1968 Delete /REBOOTOK "$INSTDIR\bin\MFC70FRA.DLL"
1969 Delete /REBOOTOK "$INSTDIR\bin\MFC70ITA.DLL"
1970 Delete /REBOOTOK "$INSTDIR\bin\MFC70JPN.DLL"
1971 Delete /REBOOTOK "$INSTDIR\bin\MFC70KOR.DLL"
1973 Delete /REBOOTOK "$INSTDIR\bin\mfc42.dll"
1974 Delete /REBOOTOK "$INSTDIR\bin\msvcp60.dll"
1975 Delete /REBOOTOK "$INSTDIR\bin\msvcrt.dll"
1981 Delete /REBOOTOK "$INSTDIR\Common\*"
1982 RMDir "$INSTDIR\Common"
1986 Delete /REBOOTOK "$INSTDIR\kfw\bin\*"
1987 RMDIR /r "$INSTDIR\kfw\bin"
1988 Delete /REBOOTOK "$INSTDIR\kfw\doc\*"
1989 RMDIR /r "$INSTDIR\kfw\doc"
1990 RMDIR /r "$INSTDIR\kfw"
1993 Delete "$SMPROGRAMS\OpenAFS\Documentation.lnk"
1995 ; Remove control center
1996 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsAccountManager.exe"
1997 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsAdmSvr.exe"
1998 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsServerManager.exe"
1999 Delete /REBOOTOK "$INSTDIR\Control Center\CCUninst.dll"
2000 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsAccountManager.pdb"
2001 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsAdmSvr.pdb"
2002 Delete /REBOOTOK "$INSTDIR\Control Center\TaAfsServerManager.pdb"
2003 RMDir "$INSTDIR\Control Center"
2005 Delete "$SMPROGRAMS\OpenAFS\Uninstall OpenAFS.lnk"
2006 Delete "$SMPROGRAMS\OpenAFS\Client\Authentication.lnk"
2007 Delete "$SMPROGRAMS\OpenAFS\Control Center\Account Manager.lnk"
2008 Delete "$SMPROGRAMS\OpenAFS\Control Center\Server Manager.lnk"
2009 RMDIR "$SMPROGRAMS\OpenAFS\Control Center"
2010 RMDir /r "$SMPROGRAMS\OpenAFS\Client"
2011 RMDir /r "$SMPROGRAMS\OpenAFS"
2012 Delete "$SMSTARTUP\AFS Credentials.lnk"
2014 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon" "CachePath"
2016 Delete "$R0\AFSCache"
2017 Delete "C:\AFSCache"
2019 DeleteRegKey HKCR "*\shellex\ContextMenuHandlers\AFS Client Shell Extension"
2020 DeleteRegKey HKCR "CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}\InprocServer32"
2021 DeleteRegKey HKCR "CLSID\{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}"
2022 DeleteRegKey HKCR "FOLDER\shellex\ContextMenuHandlers\AFS Client Shell Extension"
2023 DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" "{DC515C27-6CAC-11D1-BAE7-00C04FD140D2}"
2024 DeleteRegValue HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls" "afs_cpa"
2026 ; WinLogon Event Notification
2027 DeleteRegKey HKLM "Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\AfsLogon"
2029 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Client\CurrentVersion"
2030 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Client"
2031 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation\CurrentVersion"
2032 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Supplemental Documentation"
2033 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Control Center\CurrentVersion"
2034 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Control Center"
2035 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Server\CurrentVersion"
2036 DeleteRegKey HKLM "${AFS_REGKEY_ROOT}\AFS Server"
2037 DeleteRegKey /ifempty HKLM "${AFS_REGKEY_ROOT}"
2038 DeleteRegKey HKLM "${NID_PLUGIN_MGR}\Modules\OpenAFS"
2039 DeleteRegKey HKLM "${NID_PLUGIN_MGR}\Plugins\AfsCred"
2040 DeleteRegKey /ifempty HKLM "Software\MIT\NetIDMgr"
2041 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS"
2042 DeleteRegValue HKLM "SYSTEM\CurrentControlSet\Services\NetBT\Parameters" "SmbDeviceEnabled"
2044 ; Support for apps that wrote submount data directly to afsdsbmt.ini
2045 DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\afsdsbmt.ini"
2051 ;--------------------------------
2052 ;Uninstaller Functions
2056 ;Get language from registry
2057 ReadRegStr $LANGUAGE HKCU "Software\OpenAFS\AFS" "Installer Language"
2061 Function un.onUninstSuccess
2064 MessageBox MB_OK "Please reboot your machine to complete uninstallation of the software"
2069 ;------------------------------
2070 ; Get the CellServDB file from the Internet
2072 Function afs.GetCellServDB
2074 ;Check if we should download CellServDB
2075 ReadINIStr $R0 $0 "Field 4" "State"
2076 StrCmp $R0 "1" DoDownload
2078 ;Do nothing if we're keeping the existing file
2079 ReadINIStr $R0 $0 "Field 2" "State"
2082 ReadINIStr $R0 $0 "Field 6" "State"
2083 StrCmp $R0 "1" CheckOther
2085 ReadINIStr $R0 $0 "Field 3" "State"
2086 StrCmp $R0 "1" UsePackaged
2088 ; If none of these, grab file from other location
2092 ReadINIStr $R0 $0 "Field 5" "State"
2093 NSISdl::download $R0 "$INSTDIR\Client\CellServDB"
2094 Pop $R0 ;Get the return value
2095 StrCmp $R0 "success" +2
2096 MessageBox MB_OK|MB_ICONSTOP "Download failed: $R0"
2100 SetOutPath "$INSTDIR\Client"
2105 ReadINIStr $R0 $0 "Field 7" "State"
2107 CopyFiles $R0 "$INSTDIR\Client\CellServDB"
2113 Function AddProvider
2116 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\HWOrder" "ProviderOrder"
2118 StrCpy $R0 "TransarcAFSDaemon"
2122 StrCmp $R0 "" +1 DoOther
2123 ReadRegStr $R1 HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\HWOrder" "ProviderOrder"
2124 StrCpy $R0 "$R1,TransarcAFSDaemon"
2125 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\HWOrder" "ProviderOrder" $R0
2127 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\Order" "ProviderOrder"
2129 StrCpy $R0 "TransarcAFSDaemon"
2133 StrCmp $R0 "" +1 End
2134 ReadRegStr $R1 HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\Order" "ProviderOrder"
2135 StrCpy $R0 "$R1,TransarcAFSDaemon"
2136 WriteRegStr HKLM "SYSTEM\CurrentControlSet\Control\NetworkProvider\Order" "ProviderOrder" $R0
2142 Function un.RemoveProvider
2144 StrCpy $R0 "TransarcAFSDaemon"
2146 StrCpy $R0 "SYSTEM\CurrentControlSet\Control\NetworkProvider\HWOrder"
2147 Call un.RemoveFromProvider
2148 StrCpy $R0 "TransarcAFSDaemon"
2150 StrCpy $R0 "SYSTEM\CurrentControlSet\Control\NetworkProvider\Order"
2151 Call un.RemoveFromProvider
2155 Function un.RemoveFromProvider
2164 ReadRegStr $1 HKLM "$R0" "ProviderOrder"
2165 StrCpy $5 $1 1 -1 # copy last char
2166 StrCmp $5 "," +2 # if last char != ,
2167 StrCpy $1 "$1," # append ,
2170 Call un.StrStr ; Find `$0,` in $1
2171 Pop $2 ; pos of our dir
2172 StrCmp $2 "" unRemoveFromPath_done
2173 ; else, it is in path
2178 StrCpy $5 $1 -$4 # $5 is now the part before the path to remove
2179 StrCpy $6 $2 "" $3 # $6 is now the part after the path to remove
2182 StrCpy $5 $3 1 -1 # copy last char
2183 StrCmp $5 "," 0 +2 # if last char == ,
2184 StrCpy $3 $3 -1 # remove last char
2186 WriteRegStr HKLM "$R0" "ProviderOrder" $3
2188 unRemoveFromPath_done:
2198 Function CheckPathForAFS
2203 ReadRegStr $1 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH"
2212 IfFileExists "$3\afsd_service.exe" Error
2213 StrCpy $1 $0 32768 1
2215 IntCmp $2 0 Done Done loop
2218 MessageBox MB_ICONSTOP|MB_OK|MB_TOPMOST "This installer is unable to upgrade the previous version of AFS. Please uninstall the current AFS version before continuing."
2219 Abort "Unable to install OpenAFS"
2227 Function AddToUniquePath
2231 ReadRegStr $R0 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH"
2235 StrCmp $R0 "" +1 Done
2241 ;-------------------------------
2242 ;Do the page to get the CellServDB
2244 Function AFSPageGetCellServDB
2245 ; Skip this page if we are not installing the client
2246 SectionGetFlags ${secClient} $R0
2247 IntOp $R0 $R0 & ${SF_SELECTED}
2250 ; Set the install options here
2253 WriteINIStr $0 "Field 2" "Flags" "DISABLED"
2254 WriteINIStr $0 "Field 3" "State" "1"
2255 WriteINISTR $0 "Field 4" "State" "0"
2256 WriteINIStr $0 "Field 6" "State" "0"
2258 ; If there is an existing afsdcell.ini file, migrate it to CellServDB
2259 IfFileExists "$WINDIR\afsdcell.ini" +1 +3
2260 CopyFiles /SILENT "$WINDIR\afsdcell.ini" "$INSTDIR\Client\CellServDB"
2261 Delete "$WINDIR\afsdcell.ini"
2262 ; If there is an existing CellServDB file, allow the user to choose it and make it default
2263 IfFileExists "$INSTDIR\Client\CellServDB" +1 notpresent
2264 WriteINIStr $0 "Field 2" "Flags" "ENABLED"
2265 WriteINIStr $0 "Field 2" "State" "1"
2266 WriteINIStr $0 "Field 3" "State" "0"
2270 !insertmacro MUI_HEADER_TEXT "CellServDB Configuration" "Please choose a method for installing the CellServDB file:"
2271 InstallOptions::dialog $0
2273 StrCmp $R1 "cancel" exit
2274 StrCmp $R1 "back" done
2275 StrCmp $R1 "success" done
2279 ; Check that if a file is set, a valid filename is entered...
2280 ReadINIStr $R0 $0 "Field 6" "State"
2281 StrCmp $R0 "1" CheckFileName
2283 ;Check if a URL is specified, one *IS* specified
2284 ReadINIStr $R0 $0 "Field 4" "State"
2285 StrCmp $R0 "1" CheckURL Skip
2288 ReadINIStr $R0 $0 "Field 5" "State"
2289 StrCmp $R0 "" +1 Skip
2290 MessageBox MB_OK|MB_ICONSTOP $(URLError)
2291 WriteINIStr $0 "Field 4" "State" "0"
2295 ReadINIStr $R0 $0 "Field 7" "State"
2296 IfFileExists $R0 Skip
2298 MessageBox MB_OK|MB_ICONSTOP $(CellError)
2299 WriteINIStr $0 "Field 6" "State" "0"
2307 Function AFSPageGetCellName
2309 ; Skip this page if we are not installing the client
2310 SectionGetFlags ${secClient} $R0
2311 IntOp $R0 $R0 & ${SF_SELECTED}
2315 ; We want to read in the existing parameters and make them the defaults
2318 ReadRegDWORD $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "SecurityLevel"
2320 WriteINIStr $1 "Field 3" "State" $R1
2322 WriteINIStr $1 "Field 3" "State" "1"
2325 ReadRegDWORD $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "UseDNS"
2327 WriteINIStr $1 "Field 9" "State" $R1
2329 WriteINIStr $1 "Field 9" "State" "1"
2331 ; Use integrated logon
2332 ReadRegDWORD $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "LogonOptions"
2334 WriteINIStr $1 "Field 7" "State" $R1
2336 WriteINIStr $1 "Field 7" "State" "0"
2338 ; If this is a server install, we do NOT want to recommend the Freelance client
2339 ; And we do not need to ask for the cell name.
2340 SectionGetFlags ${secServer} $R1
2341 IntOp $R1 $R1 & ${SF_SELECTED}
2342 StrCmp $R1 "1" +1 NotServer
2343 WriteINIStr $1 "Field 6" "Text" "Enable AFS Freelance client (Not Recommended for servers)"
2344 ReadRegDWORD $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "FreelanceClient"
2346 WriteINIStr $1 "Field 5" "State" $R1
2348 WriteINIStr $1 "Field 5" "State" "0"
2349 WriteINIStr $1 "Field 1" "Flags" "DISABLED"
2350 WriteINIStr $1 "Field 2" "Flags" "DISABLED"
2353 WriteINIStr $1 "Field 6" "Text" "Enable AFS Freelance client (Recommended)"
2354 ReadRegDWORD $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "FreelanceClient"
2356 WriteINIStr $1 "Field 5" "State" $R1
2358 WriteINIStr $1 "Field 5" "State" "1"
2359 WriteINIStr $1 "Field 1" "Flags" ""
2360 WriteINIStr $1 "Field 2" "Flags" ""
2362 ; Get the current cell name, if any
2363 ReadRegStr $R1 HKLM "SYSTEM\CurrentControlSet\Services\TransarcAFSDaemon\Parameters" "Cell"
2365 WriteINIStr $1 "Field 2" "State" $R1
2366 !insertmacro MUI_HEADER_TEXT "Client Cell Name Configuration" "Please enter the name for your default cell:"
2367 InstallOptions::dialog $1
2369 StrCmp $R1 "cancel" exit
2370 StrCmp $R1 "back" done
2371 StrCmp $R1 "success" done
2374 ReadINIStr $R0 $1 "Field 2" "State"
2375 StrCmp $R0 "" +1 good
2377 MessageBox MB_OK|MB_ICONSTOP $(CellNameError)
2383 ;---------------------------------------------------------
2384 ;Do the page to get the afscreds.exe startup configuration
2386 Function AFSPageConfigAFSCreds
2387 ; Skip this page if we are not installing the client
2388 SectionGetFlags ${secClient} $R0
2389 IntOp $R0 $R0 & ${SF_SELECTED}
2392 ; Set the install options here
2394 !insertmacro MUI_HEADER_TEXT "AFS Credentials Configuration" "Please choose default options for configuring the AFS Credentials program:"
2395 InstallOptions::dialog $2
2397 StrCmp $R1 "cancel" exit
2398 StrCmp $R1 "back" done
2399 StrCmp $R1 "success" done
2407 ; Common install routines for each module
2408 Function AFSCommon.Install
2410 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayName" "OpenAFS for Windows"
2411 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "UninstallString" "$INSTDIR\uninstall.exe"
2413 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayVersion" "${AFS_VERSION}"
2415 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "DisplayVersion" "${AFS_VERSION} Checked/Debug"
2417 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenAFS" "URLInfoAbout" "http://www.openafs.org/"
2422 ;-------------------
2423 ; Get the currently installed version and place it on the stack
2425 Function GetInstalledVersion
2430 ReadRegStr $R0 HKLM "Software\TransarcCorporation\$R2\CurrentVersion" "VersionString"
2431 StrCmp $R0 "" NotTransarc done
2435 ReadRegStr $R0 HKLM "${AFS_REGKEY_ROOT}\$R2\CurrentVersion" "VersionString"
2444 ; Functions to get each component of the version number
2445 Function GetInstalledVersionMajor
2450 ReadRegDWORD $R0 HKLM "Software\TransarcCorporation\$R2\CurrentVersion" "MajorVersion"
2451 StrCmp $R0 "" NotTransarc done
2455 ReadRegDWORD $R0 HKLM "${AFS_REGKEY_ROOT}\$R2\CurrentVersion" "MajorVersion"
2464 Function GetInstalledVersionMinor
2469 ReadRegDWORD $R0 HKLM "Software\TransarcCorporation\$R2\CurrentVersion" "MinorVersion"
2470 StrCmp $R0 "" NotTransarc done
2474 ReadRegDWORD $R0 HKLM "${AFS_REGKEY_ROOT}\$R2\CurrentVersion" "MinorVersion"
2483 Function GetInstalledVersionPatch
2488 ReadRegDWORD $R0 HKLM "Software\TransarcCorporation\$R2\CurrentVersion" "PatchLevel"
2489 StrCmp $R0 "" NotTransarc done
2493 ReadRegDWORD $R0 HKLM "${AFS_REGKEY_ROOT}\$R2\CurrentVersion" "PatchLevel"
2504 ;-------------------------------
2505 ; Check if the client should be checked for default install
2506 Function ShouldClientInstall
2508 StrCpy $R2 "AFS Client"
2509 Call GetInstalledVersion
2512 StrCmp $R0 "" NotInstalled
2513 ; Now we see if it's an older or newer version
2515 Call GetInstalledVersionMajor
2517 IntCmpU $R0 ${AFS_MAJORVERSION} +1 Upgrade Downgrade
2519 Call GetInstalledVersionMinor
2521 IntCmpU $R0 ${AFS_MINORVERSION} +1 Upgrade Downgrade
2523 Call GetInstalledVersionPatch
2525 IntCmpU $R0 ${AFS_PATCHLEVEL} Reinstall Upgrade Downgrade
2548 ;-------------------------------
2549 ; Check how the server options should be set
2550 Function ShouldServerInstall
2552 StrCpy $R2 "AFS Server"
2553 Call GetInstalledVersion
2556 StrCmp $R0 "" NotInstalled
2557 ; Now we see if it's an older or newer version
2559 Call GetInstalledVersionMajor
2561 IntCmpU $R0 ${AFS_MAJORVERSION} +1 Upgrade Downgrade
2563 Call GetInstalledVersionMinor
2565 IntCmpU $R0 ${AFS_MINORVERSION} +1 Upgrade Downgrade
2567 Call GetInstalledVersionPatch
2569 IntCmpU $R0 ${AFS_PATCHLEVEL} Reinstall Upgrade Downgrade
2594 ; See if AFS Server is installed
2595 ; Returns: "1" if it is, 0 if it is not (on the stack)
2596 Function IsServerInstalled
2598 StrCpy $R2 "AFS Server"
2599 Call GetInstalledVersion
2602 StrCmp $R0 "" NotInstalled
2615 ; See if AFS Client is installed
2616 ; Returns: "1" if it is, 0 if it is not (on the stack)
2617 Function IsClientInstalled
2619 StrCpy $R2 "AFS Client"
2620 Call GetInstalledVersion
2623 StrCmp $R0 "" NotInstalled
2637 ; See if AFS Documentation is installed
2638 ; Returns: "1" if it is, 0 if it is not (on the stack)
2639 Function IsDocumentationInstalled
2641 StrCpy $R2 "AFS Supplemental Documentation"
2642 Call GetInstalledVersion
2645 StrCmp $R0 "" NotInstalled
2658 ; See if Control Center is installed
2659 ; Returns: "1" if it is, 0 if it is not (on the stack)
2660 Function IsControlInstalled
2662 StrCpy $R2 "AFS Control Center"
2663 Call GetInstalledVersion
2666 StrCmp $R0 "" NotInstalled
2679 !ifdef USE_GETPARAMETERS
2682 ; output, top of stack (replaces, with e.g. whatever)
2683 ; modifies no other variables.
2685 Function GetParameters
2689 StrCpy $R0 $CMDLINE 1
2693 StrCpy $R1 ' ' ; we're scanning for a space instead of a quote
2695 StrCpy $R0 $CMDLINE 1 $R2
2696 StrCmp $R0 $R1 loop2
2702 StrCpy $R0 $CMDLINE 1 $R2
2703 StrCmp $R0 " " loop2
2704 StrCpy $R0 $CMDLINE "" $R2
2712 ;Check to see if any AFS component is installed
2713 ;Returns: Value on stack: "1" if it is, "0" if it is not
2714 Function IsAnyAFSInstalled
2719 Call IsClientInstalled
2721 Call IsServerInstalled
2723 Call IsControlInstalled
2725 Call IsDocumentationInstalled
2727 ; Now we must see if ANY of the $Rn values are 1
2728 StrCmp $R0 "1" SomethingInstalled
2729 StrCmp $R1 "1" SomethingInstalled
2730 StrCmp $R2 "1" SomethingInstalled
2731 StrCmp $R3 "1" SomethingInstalled
2745 ;Install English Language Files
2746 Function AFSLangFiles
2748 SetOutPath "$INSTDIR\Common"
2749 File "${AFS_CLIENT_BUILDDIR}\afs_config.exe"
2750 !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afsauthent.dll" "$INSTDIR\Common\afsauthent.dll" "$INSTDIR"
2751 !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afspthread.dll" "$INSTDIR\Common\afspthread.dll" "$INSTDIR"
2752 !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afsrpc.dll" "$INSTDIR\Common\afsrpc.dll" "$INSTDIR"
2753 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsadminutil.dll" "$INSTDIR\Common\afsadminutil.dll" "$INSTDIR"
2754 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsclientadmin.dll" "$INSTDIR\Common\afsclientadmin.dll" "$INSTDIR"
2755 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsprocmgmt.dll" "$INSTDIR\Common\afsprocmgmt.dll" "$INSTDIR"
2756 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsvosadmin.dll" "$INSTDIR\Common\afsvosadmin.dll" "$INSTDIR"
2757 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib.dll" "$INSTDIR\Common\TaAfsAppLib.dll" "$INSTDIR"
2758 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsvosadmin.dll" "$INSTDIR\Common\afsvosadmin.dll" "$INSTDIR"
2759 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsbosadmin.dll" "$INSTDIR\Common\afsbosadmin.dll" "$INSTDIR"
2760 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afscfgadmin.dll" "$INSTDIR\Common\afscfgadmin.dll" "$INSTDIR"
2761 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afskasadmin.dll" "$INSTDIR\Common\afskasadmin.dll" "$INSTDIR"
2762 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsptsadmin.dll" "$INSTDIR\Common\afsptsadmin.dll" "$INSTDIR"
2764 SetOutPath "$INSTDIR\Common"
2768 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr80d.dll" "$INSTDIR\Common\msvcr80d.dll" "$INSTDIR"
2769 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp80d.dll" "$INSTDIR\Common\msvcp80d.dll" "$INSTDIR"
2770 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc80d.dll" "$INSTDIR\Common\mfc80d.dll" "$INSTDIR"
2771 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80CHS.DLL" "$INSTDIR\Common\MFC80CHS.DLL" "$INSTDIR"
2772 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80CHT.DLL" "$INSTDIR\Common\MFC80CHT.DLL" "$INSTDIR"
2773 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80DEU.DLL" "$INSTDIR\Common\MFC80DEU.DLL" "$INSTDIR"
2774 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ENU.DLL" "$INSTDIR\Common\MFC80ENU.DLL" "$INSTDIR"
2775 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ESP.DLL" "$INSTDIR\Common\MFC80ESP.DLL" "$INSTDIR"
2776 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80FRA.DLL" "$INSTDIR\Common\MFC80FRA.DLL" "$INSTDIR"
2777 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ITA.DLL" "$INSTDIR\Common\MFC80ITA.DLL" "$INSTDIR"
2778 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80JPN.DLL" "$INSTDIR\Common\MFC80JPN.DLL" "$INSTDIR"
2779 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80KOR.DLL" "$INSTDIR\Common\MFC80KOR.DLL" "$INSTDIR"
2782 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr71d.dll" "$INSTDIR\Common\msvcr71d.dll" "$INSTDIR"
2783 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp71d.dll" "$INSTDIR\Common\msvcp71d.dll" "$INSTDIR"
2784 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc71d.dll" "$INSTDIR\Common\mfc71d.dll" "$INSTDIR"
2785 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71CHS.DLL" "$INSTDIR\Common\MFC71CHS.DLL" "$INSTDIR"
2786 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71CHT.DLL" "$INSTDIR\Common\MFC71CHT.DLL" "$INSTDIR"
2787 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71DEU.DLL" "$INSTDIR\Common\MFC71DEU.DLL" "$INSTDIR"
2788 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ENU.DLL" "$INSTDIR\Common\MFC71ENU.DLL" "$INSTDIR"
2789 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ESP.DLL" "$INSTDIR\Common\MFC71ESP.DLL" "$INSTDIR"
2790 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71FRA.DLL" "$INSTDIR\Common\MFC71FRA.DLL" "$INSTDIR"
2791 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ITA.DLL" "$INSTDIR\Common\MFC71ITA.DLL" "$INSTDIR"
2792 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71JPN.DLL" "$INSTDIR\Common\MFC71JPN.DLL" "$INSTDIR"
2793 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71KOR.DLL" "$INSTDIR\Common\MFC71KOR.DLL" "$INSTDIR"
2796 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr70d.dll" "$INSTDIR\Common\msvcr70d.dll" "$INSTDIR"
2797 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp70d.dll" "$INSTDIR\Common\msvcp70d.dll" "$INSTDIR"
2798 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc70d.dll" "$INSTDIR\Common\mfc70d.dll" "$INSTDIR"
2799 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70CHS.DLL" "$INSTDIR\Common\MFC70CHS.DLL" "$INSTDIR"
2800 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70CHT.DLL" "$INSTDIR\Common\MFC70CHT.DLL" "$INSTDIR"
2801 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70DEU.DLL" "$INSTDIR\Common\MFC70DEU.DLL" "$INSTDIR"
2802 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ENU.DLL" "$INSTDIR\Common\MFC70ENU.DLL" "$INSTDIR"
2803 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ESP.DLL" "$INSTDIR\Common\MFC70ESP.DLL" "$INSTDIR"
2804 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70FRA.DLL" "$INSTDIR\Common\MFC70FRA.DLL" "$INSTDIR"
2805 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ITA.DLL" "$INSTDIR\Common\MFC70ITA.DLL" "$INSTDIR"
2806 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70JPN.DLL" "$INSTDIR\Common\MFC70JPN.DLL" "$INSTDIR"
2807 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70KOR.DLL" "$INSTDIR\Common\MFC70KOR.DLL" "$INSTDIR"
2809 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc42d.dll" "$INSTDIR\Common\mfc42d.dll" "$INSTDIR"
2810 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp60d.dll" "$INSTDIR\Common\msvcp60d.dll" "$INSTDIR"
2811 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcrtd.dll" "$INSTDIR\Common\msvcrtd.dll" "$INSTDIR"
2817 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc80.dll" "$INSTDIR\Common\mfc80.dll" "$INSTDIR"
2818 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr80.dll" "$INSTDIR\Common\msvcr80.dll" "$INSTDIR"
2819 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp80.dll" "$INSTDIR\Common\msvcp80.dll" "$INSTDIR"
2820 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80CHS.DLL" "$INSTDIR\Common\MFC80CHS.DLL" "$INSTDIR"
2821 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80CHT.DLL" "$INSTDIR\Common\MFC80CHT.DLL" "$INSTDIR"
2822 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80DEU.DLL" "$INSTDIR\Common\MFC80DEU.DLL" "$INSTDIR"
2823 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ENU.DLL" "$INSTDIR\Common\MFC80ENU.DLL" "$INSTDIR"
2824 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ESP.DLL" "$INSTDIR\Common\MFC80ESP.DLL" "$INSTDIR"
2825 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80FRA.DLL" "$INSTDIR\Common\MFC80FRA.DLL" "$INSTDIR"
2826 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80ITA.DLL" "$INSTDIR\Common\MFC80ITA.DLL" "$INSTDIR"
2827 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80JPN.DLL" "$INSTDIR\Common\MFC80JPN.DLL" "$INSTDIR"
2828 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC80KOR.DLL" "$INSTDIR\Common\MFC80KOR.DLL" "$INSTDIR"
2831 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc71.dll" "$INSTDIR\Common\mfc71.dll" "$INSTDIR"
2832 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr71.dll" "$INSTDIR\Common\msvcr71.dll" "$INSTDIR"
2833 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp71.dll" "$INSTDIR\Common\msvcp71.dll" "$INSTDIR"
2834 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71CHS.DLL" "$INSTDIR\Common\MFC71CHS.DLL" "$INSTDIR"
2835 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71CHT.DLL" "$INSTDIR\Common\MFC71CHT.DLL" "$INSTDIR"
2836 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71DEU.DLL" "$INSTDIR\Common\MFC71DEU.DLL" "$INSTDIR"
2837 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ENU.DLL" "$INSTDIR\Common\MFC71ENU.DLL" "$INSTDIR"
2838 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ESP.DLL" "$INSTDIR\Common\MFC71ESP.DLL" "$INSTDIR"
2839 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71FRA.DLL" "$INSTDIR\Common\MFC71FRA.DLL" "$INSTDIR"
2840 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71ITA.DLL" "$INSTDIR\Common\MFC71ITA.DLL" "$INSTDIR"
2841 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71JPN.DLL" "$INSTDIR\Common\MFC71JPN.DLL" "$INSTDIR"
2842 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC71KOR.DLL" "$INSTDIR\Common\MFC71KOR.DLL" "$INSTDIR"
2845 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc70.dll" "$INSTDIR\Common\mfc70.dll" "$INSTDIR"
2846 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcr70.dll" "$INSTDIR\Common\msvcr70.dll" "$INSTDIR"
2847 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp70.dll" "$INSTDIR\Common\msvcp70.dll" "$INSTDIR"
2848 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70CHS.DLL" "$INSTDIR\Common\MFC70CHS.DLL" "$INSTDIR"
2849 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70CHT.DLL" "$INSTDIR\Common\MFC70CHT.DLL" "$INSTDIR"
2850 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70DEU.DLL" "$INSTDIR\Common\MFC70DEU.DLL" "$INSTDIR"
2851 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ENU.DLL" "$INSTDIR\Common\MFC70ENU.DLL" "$INSTDIR"
2852 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ESP.DLL" "$INSTDIR\Common\MFC70ESP.DLL" "$INSTDIR"
2853 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70FRA.DLL" "$INSTDIR\Common\MFC70FRA.DLL" "$INSTDIR"
2854 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70ITA.DLL" "$INSTDIR\Common\MFC70ITA.DLL" "$INSTDIR"
2855 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70JPN.DLL" "$INSTDIR\Common\MFC70JPN.DLL" "$INSTDIR"
2856 !insertmacro ReplaceDLL "${SYSTEMDIR}\MFC70KOR.DLL" "$INSTDIR\Common\MFC70KOR.DLL" "$INSTDIR"
2858 !insertmacro ReplaceDLL "${SYSTEMDIR}\mfc42.dll" "$INSTDIR\Common\mfc42.dll" "$INSTDIR"
2859 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcp60.dll" "$INSTDIR\Common\msvcp60.dll" "$INSTDIR"
2860 !insertmacro ReplaceDLL "${SYSTEMDIR}\msvcrt.dll" "$INSTDIR\Common\msvcrt.dll" "$INSTDIR"
2866 StrCmp $LANGUAGE ${LANG_ENGLISH} DoEnglish
2867 StrCmp $LANGUAGE ${LANG_GERMAN} DoGerman
2868 StrCmp $LANGUAGE ${LANG_SPANISH} DoSpanish
2869 StrCmp $LANGUAGE ${LANG_JAPANESE} DoJapanese
2870 StrCmp $LANGUAGE ${LANG_KOREAN} DoKorean
2871 StrCmp $LANGUAGE ${LANG_PORTUGUESEBR} DoPortugueseBR
2872 StrCmp $LANGUAGE ${LANG_SIMPCHINESE} DoSimpChinese
2873 StrCmp $LANGUAGE ${LANG_TRADCHINESE} DoTradChinese
2877 SetOutPath "$INSTDIR\Documentation"
2878 File "..\..\doc\install\Documentation\en_US\README.TXT"
2879 SetOutPath "$INSTDIR\Documentation\html"
2880 File "..\..\doc\install\Documentation\en_US\html\*"
2881 SetOutPath "$INSTDIR\Documentation\html\index_files"
2882 File "..\..\doc\install\Documentation\en_US\html\index_files\*"
2883 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
2884 File "..\..\doc\install\Documentation\en_US\html\InstallGd\*"
2885 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
2886 File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\*"
2887 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
2888 File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\logo_files\*"
2889 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
2890 File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\relnotes_files\*"
2892 SetOutPath "$INSTDIR\Client\Program"
2893 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1033.dll" "$INSTDIR\Client\Program\afscreds_1033.dll" "$INSTDIR"
2894 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1033.dll" "$INSTDIR\Client\Program\afs_shl_ext_1033.dll" "$INSTDIR"
2896 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1033.pdb"
2897 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1033.pdb"
2900 File "..\..\doc\help\en_US\afs-light.CNT"
2901 File "..\..\doc\help\en_US\afs-light.hlp"
2902 File "..\..\doc\help\en_US\afs-nt.CNT"
2903 File "..\..\doc\help\en_US\afs-nt.HLP"
2905 SetOutPath "$INSTDIR\Common"
2906 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1033.dll" "$INSTDIR\Common\afs_config_1033.dll" "$INSTDIR"
2907 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1033.dll" "$INSTDIR\Common\afs_cpa_1033.dll" "$INSTDIR"
2908 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1033.dll" "$INSTDIR\Common\afseventmsg_1033.dll" "$INSTDIR"
2909 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1033.dll" "$INSTDIR\Common\afs_setup_utils_1033.dll" "$INSTDIR"
2910 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1033.dll" "$INSTDIR\Common\afsserver_1033.dll" "$INSTDIR"
2911 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1033.dll" "$INSTDIR\Common\afssvrcfg_1033.dll" "$INSTDIR"
2912 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1033.dll" "$INSTDIR\Common\TaAfsAccountManager_1033.dll" "$INSTDIR"
2913 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1033.dll" "$INSTDIR\Common\TaAfsAppLib_1033.dll" "$INSTDIR"
2914 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1033.dll" "$INSTDIR\Common\TaAfsServerManager_1033.dll" "$INSTDIR"
2915 File "..\..\doc\help\en_US\afs-cc.CNT"
2916 File "..\..\doc\help\en_US\afs-cc.hlp"
2917 File "..\..\doc\help\en_US\taafscfg.CNT"
2918 File "..\..\doc\help\en_US\taafscfg.hlp"
2919 File "..\..\doc\help\en_US\taafssvrmgr.CNT"
2920 File "..\..\doc\help\en_US\taafssvrmgr.hlp"
2921 File "..\..\doc\help\en_US\taafsusrmgr.CNT"
2922 File "..\..\doc\help\en_US\taafsusrmgr.hlp"
2925 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1033.pdb"
2926 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1033.pdb"
2927 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1033.pdb"
2928 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1033.pdb"
2929 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1033.pdb"
2930 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1033.pdb"
2931 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1033.pdb"
2932 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1033.pdb"
2938 SetOutPath "$INSTDIR\Documentation"
2939 File "..\..\doc\install\Documentation\de_DE\README.TXT"
2940 SetOutPath "$INSTDIR\Documentation\html"
2941 File "..\..\doc\install\Documentation\de_DE\html\*"
2942 SetOutPath "$INSTDIR\Documentation\html\index_files"
2943 ;File "..\..\doc\install\Documentation\de_DE\html\index_files\*"
2944 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
2945 File "..\..\doc\install\Documentation\de_DE\html\InstallGd\*"
2946 ;SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
2947 ;File "..\..\doc\install\Documentation\de_DE\html\ReleaseNotes\*"
2948 ;SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
2949 ;File "..\..\doc\install\Documentation\de_DE\html\ReleaseNotes\logo_files\*"
2950 ;SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
2951 ;File "..\..\doc\install\Documentation\de_DE\html\ReleaseNotes\relnotes_files\*"
2953 SetOutPath "$INSTDIR\Client\Program"
2954 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1032.dll" "$INSTDIR\Client\Program\afscreds_1032.dll" "$INSTDIR"
2955 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1032.dll" "$INSTDIR\Client\Program\afs_shl_ext_1032.dll" "$INSTDIR"
2957 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1032.pdb"
2958 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1032.pdb"
2961 File "..\..\doc\help\de_DE\afs-light.CNT"
2962 File "..\..\doc\help\de_DE\afs-light.hlp"
2963 File "..\..\doc\help\de_DE\afs-nt.CNT"
2964 File "..\..\doc\help\de_DE\afs-nt.HLP"
2966 SetOutPath "$INSTDIR\Common"
2967 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1032.dll" "$INSTDIR\Common\afs_config_1032.dll" "$INSTDIR"
2968 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1032.dll" "$INSTDIR\Common\afs_cpa_1032.dll" "$INSTDIR"
2969 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1032.dll" "$INSTDIR\Common\afseventmsg_1032.dll" "$INSTDIR"
2970 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1032.dll" "$INSTDIR\Common\afs_setup_utils_1032.dll" "$INSTDIR"
2971 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1032.dll" "$INSTDIR\Common\afsserver_1032.dll" "$INSTDIR"
2972 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1032.dll" "$INSTDIR\Common\afssvrcfg_1032.dll" "$INSTDIR"
2973 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1032.dll" "$INSTDIR\Common\TaAfsAccountManager_1032.dll" "$INSTDIR"
2974 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1032.dll" "$INSTDIR\Common\TaAfsAppLib_1032.dll" "$INSTDIR"
2975 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1032.dll" "$INSTDIR\Common\TaAfsServerManager_1032.dll" "$INSTDIR"
2976 File "..\..\doc\help\de_DE\afs-cc.CNT"
2977 File "..\..\doc\help\de_DE\afs-cc.hlp"
2978 File "..\..\doc\help\de_DE\taafscfg.CNT"
2979 File "..\..\doc\help\de_DE\taafscfg.hlp"
2980 File "..\..\doc\help\de_DE\taafssvrmgr.CNT"
2981 File "..\..\doc\help\de_DE\taafssvrmgr.hlp"
2982 File "..\..\doc\help\de_DE\taafsusrmgr.CNT"
2983 File "..\..\doc\help\de_DE\taafsusrmgr.hlp"
2986 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1032.pdb"
2987 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1032.pdb"
2988 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1032.pdb"
2989 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1032.pdb"
2990 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1032.pdb"
2991 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1032.pdb"
2992 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1032.pdb"
2993 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1032.pdb"
2999 SetOutPath "$INSTDIR\Documentation"
3000 File "..\..\doc\install\Documentation\es_ES\README.TXT"
3001 SetOutPath "$INSTDIR\Documentation\html"
3002 ;File "..\..\doc\install\Documentation\es_ES\html\*"
3003 SetOutPath "$INSTDIR\Documentation\html\index_html"
3004 ;File "..\..\doc\install\Documentation\es_ES\html\index_files\*"
3005 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3006 ;File "..\..\doc\install\Documentation\es_ES\html\InstallGd\*"
3007 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3008 ;File "..\..\doc\install\Documentation\es_ES\html\ReleaseNotes\*"
3009 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3010 ;File "..\..\doc\install\Documentation\es_ES\html\ReleaseNotes\logo_files\*"
3011 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3012 ;File "..\..\doc\install\Documentation\es_ES\html\ReleaseNotes\relnotes_files\*"
3014 SetOutPath "$INSTDIR\Client\Program"
3015 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1034.dll" "$INSTDIR\Client\Program\afscreds_1034.dll" "$INSTDIR"
3016 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1034.dll" "$INSTDIR\Client\Program\afs_shl_ext_1034.dll" "$INSTDIR"
3018 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1034.pdb"
3019 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1034.pdb"
3022 File "..\..\doc\help\es_ES\afs-light.CNT"
3023 File "..\..\doc\help\es_ES\afs-light.hlp"
3024 File "..\..\doc\help\es_ES\afs-nt.CNT"
3025 File "..\..\doc\help\es_ES\afs-nt.HLP"
3027 SetOutPath "$INSTDIR\Common"
3028 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1034.dll" "$INSTDIR\Common\afs_config_1034.dll" "$INSTDIR"
3029 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1034.dll" "$INSTDIR\Common\afs_cpa_1034.dll" "$INSTDIR"
3030 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1034.dll" "$INSTDIR\Common\afseventmsg_1034.dll" "$INSTDIR"
3031 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1034.dll" "$INSTDIR\Common\afs_setup_utils_1034.dll" "$INSTDIR"
3032 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1034.dll" "$INSTDIR\Common\afsserver_1034.dll" "$INSTDIR"
3033 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1034.dll" "$INSTDIR\Common\afssvrcfg_1034.dll" "$INSTDIR"
3034 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1034.dll" "$INSTDIR\Common\TaAfsAccountManager_1034.dll" "$INSTDIR"
3035 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1034.dll" "$INSTDIR\Common\TaAfsAppLib_1034.dll" "$INSTDIR"
3036 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1034.dll" "$INSTDIR\Common\TaAfsServerManager_1034.dll" "$INSTDIR"
3037 File "..\..\doc\help\es_ES\afs-cc.CNT"
3038 File "..\..\doc\help\es_ES\afs-cc.hlp"
3039 File "..\..\doc\help\es_ES\taafscfg.CNT"
3040 File "..\..\doc\help\es_ES\taafscfg.hlp"
3041 File "..\..\doc\help\es_ES\taafssvrmgr.CNT"
3042 File "..\..\doc\help\es_ES\taafssvrmgr.hlp"
3043 File "..\..\doc\help\es_ES\taafsusrmgr.CNT"
3044 File "..\..\doc\help\es_ES\taafsusrmgr.hlp"
3047 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1034.pdb"
3048 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1034.pdb"
3049 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1034.pdb"
3050 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1034.pdb"
3051 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1034.pdb"
3052 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1034.pdb"
3053 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1034.pdb"
3054 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1034.pdb"
3060 SetOutPath "$INSTDIR\Documentation"
3061 File "..\..\doc\install\Documentation\ja_JP\README.TXT"
3062 SetOutPath "$INSTDIR\Documentation\html"
3063 File "..\..\doc\install\Documentation\ja_JP\html\*"
3064 SetOutPath "$INSTDIR\Documentation\html\index_files"
3065 ;File "..\..\doc\install\Documentation\ja_JP\html\index_files\*"
3066 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3067 File "..\..\doc\install\Documentation\ja_JP\html\InstallGd\*"
3068 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3069 ;File "..\..\doc\install\Documentation\ja_JP\html\ReleaseNotes\*"
3070 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3071 ;File "..\..\doc\install\Documentation\ja_JP\html\ReleaseNotes\logo_files\*"
3072 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3073 ;File "..\..\doc\install\Documentation\ja_JP\html\ReleaseNotes\relnotes_files\*"
3075 SetOutPath "$INSTDIR\Client\Program"
3076 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1041.dll" "$INSTDIR\Client\Program\afscreds_1041.dll" "$INSTDIR"
3077 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1041.dll" "$INSTDIR\Client\Program\afs_shl_ext_1041.dll" "$INSTDIR"
3079 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1041.pdb"
3080 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1041.pdb"
3083 File "..\..\doc\help\ja_JP\afs-light.CNT"
3084 File "..\..\doc\help\ja_JP\afs-light.hlp"
3085 File "..\..\doc\help\ja_JP\afs-nt.CNT"
3086 File "..\..\doc\help\ja_JP\afs-nt.HLP"
3088 SetOutPath "$INSTDIR\Common"
3089 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1041.dll" "$INSTDIR\Common\afs_config_1041.dll" "$INSTDIR"
3090 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1041.dll" "$INSTDIR\Common\afs_cpa_1041.dll" "$INSTDIR"
3091 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1041.dll" "$INSTDIR\Common\afseventmsg_1041.dll" "$INSTDIR"
3092 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1041.dll" "$INSTDIR\Common\afs_setup_utils_1041.dll" "$INSTDIR"
3093 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1041.dll" "$INSTDIR\Common\afsserver_1041.dll" "$INSTDIR"
3094 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1041.dll" "$INSTDIR\Common\afssvrcfg_1041.dll" "$INSTDIR"
3095 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1041.dll" "$INSTDIR\Common\TaAfsAccountManager_1041.dll" "$INSTDIR"
3096 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1041.dll" "$INSTDIR\Common\TaAfsAppLib_1041.dll" "$INSTDIR"
3097 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1041.dll" "$INSTDIR\Common\TaAfsServerManager_1041.dll" "$INSTDIR"
3098 File "..\..\doc\help\ja_JP\afs-cc.CNT"
3099 File "..\..\doc\help\ja_JP\afs-cc.hlp"
3100 File "..\..\doc\help\ja_JP\taafscfg.CNT"
3101 File "..\..\doc\help\ja_JP\taafscfg.hlp"
3102 File "..\..\doc\help\ja_JP\taafssvrmgr.CNT"
3103 File "..\..\doc\help\ja_JP\taafssvrmgr.hlp"
3104 File "..\..\doc\help\ja_JP\taafsusrmgr.CNT"
3105 File "..\..\doc\help\ja_JP\taafsusrmgr.hlp"
3108 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1041.pdb"
3109 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1041.pdb"
3110 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1041.pdb"
3111 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1041.pdb"
3112 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1041.pdb"
3113 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1041.pdb"
3114 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1041.pdb"
3115 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1041.pdb"
3121 SetOutPath "$INSTDIR\Documentation"
3122 File "..\..\doc\install\Documentation\ko_KR\README.TXT"
3123 SetOutPath "$INSTDIR\Documentation\html"
3124 File "..\..\doc\install\Documentation\ko_KR\html\*"
3125 SetOutPath "$INSTDIR\Documentation\html\index_files"
3126 ;File "..\..\doc\install\Documentation\ko_KR\html\index_files\*"
3127 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3128 File "..\..\doc\install\Documentation\ko_KR\html\InstallGd\*"
3129 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3130 File "..\..\doc\install\Documentation\ko_KR\html\ReleaseNotes\*"
3131 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3132 ;File "..\..\doc\install\Documentation\ko_KR\html\ReleaseNotes\logo_files\*"
3133 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3134 ;File "..\..\doc\install\Documentation\ko_KR\html\ReleaseNotes\relnotes_files\*"
3136 SetOutPath "$INSTDIR\Client\Program"
3137 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1042.dll" "$INSTDIR\Client\Program\afscreds_1042.dll" "$INSTDIR"
3138 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1042.dll" "$INSTDIR\Client\Program\afs_shl_ext_1042.dll" "$INSTDIR"
3140 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1042.pdb"
3141 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1042.pdb"
3144 File "..\..\doc\help\ko_KR\afs-light.CNT"
3145 File "..\..\doc\help\ko_KR\afs-light.hlp"
3146 File "..\..\doc\help\ko_KR\afs-nt.CNT"
3147 File "..\..\doc\help\ko_KR\afs-nt.HLP"
3149 SetOutPath "$INSTDIR\Common"
3150 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1042.dll" "$INSTDIR\Common\afs_config_1042.dll" "$INSTDIR"
3151 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1042.dll" "$INSTDIR\Common\afs_cpa_1042.dll" "$INSTDIR"
3152 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1042.dll" "$INSTDIR\Common\afseventmsg_1042.dll" "$INSTDIR"
3153 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1042.dll" "$INSTDIR\Common\afs_setup_utils_1042.dll" "$INSTDIR"
3154 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1042.dll" "$INSTDIR\Common\afsserver_1042.dll" "$INSTDIR"
3155 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1042.dll" "$INSTDIR\Common\afssvrcfg_1042.dll" "$INSTDIR"
3156 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1042.dll" "$INSTDIR\Common\TaAfsAccountManager_1042.dll" "$INSTDIR"
3157 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1042.dll" "$INSTDIR\Common\TaAfsAppLib_1042.dll" "$INSTDIR"
3158 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1042.dll" "$INSTDIR\Common\TaAfsServerManager_1042.dll" "$INSTDIR"
3159 File "..\..\doc\help\ko_KR\afs-cc.CNT"
3160 File "..\..\doc\help\ko_KR\afs-cc.hlp"
3161 File "..\..\doc\help\ko_KR\taafscfg.CNT"
3162 File "..\..\doc\help\ko_KR\taafscfg.hlp"
3163 File "..\..\doc\help\ko_KR\taafssvrmgr.CNT"
3164 File "..\..\doc\help\ko_KR\taafssvrmgr.hlp"
3165 File "..\..\doc\help\ko_KR\taafsusrmgr.CNT"
3166 File "..\..\doc\help\ko_KR\taafsusrmgr.hlp"
3169 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1042.pdb"
3170 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1042.pdb"
3171 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1042.pdb"
3172 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1042.pdb"
3173 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1042.pdb"
3174 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1042.pdb"
3175 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1042.pdb"
3176 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1042.pdb"
3183 SetOutPath "$INSTDIR\Documentation"
3184 File "..\..\doc\install\Documentation\pt_BR\README.TXT"
3185 SetOutPath "$INSTDIR\Documentation\html"
3186 File "..\..\doc\install\Documentation\pt_BR\html\*"
3187 SetOutPath "$INSTDIR\Documentation\html\index_files"
3188 ;File "..\..\doc\install\Documentation\pt_BR\html\index_files\*"
3189 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3190 File "..\..\doc\install\Documentation\pt_BR\html\InstallGd\*"
3191 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3192 File "..\..\doc\install\Documentation\pt_BR\html\ReleaseNotes\*"
3193 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3194 ;File "..\..\doc\install\Documentation\pt_BR\html\ReleaseNotes\logo_files\*"
3195 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3196 ;File "..\..\doc\install\Documentation\pt_BR\html\ReleaseNotes\relnotes_files\*"
3198 SetOutPath "$INSTDIR\Client\Program"
3199 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1046.dll" "$INSTDIR\Client\Program\afscreds_1046.dll" "$INSTDIR"
3200 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1046.dll" "$INSTDIR\Client\Program\afs_shl_ext_1046.dll" "$INSTDIR"
3202 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1046.pdb"
3203 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1046.pdb"
3206 File "..\..\doc\help\pt_BR\afs-light.CNT"
3207 File "..\..\doc\help\pt_BR\afs-light.hlp"
3208 File "..\..\doc\help\pt_BR\afs-nt.CNT"
3209 File "..\..\doc\help\pt_BR\afs-nt.HLP"
3211 SetOutPath "$INSTDIR\Common"
3212 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1046.dll" "$INSTDIR\Common\afs_config_1046.dll" "$INSTDIR"
3213 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1046.dll" "$INSTDIR\Common\afs_cpa_1046.dll" "$INSTDIR"
3214 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1046.dll" "$INSTDIR\Common\afseventmsg_1046.dll" "$INSTDIR"
3215 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1046.dll" "$INSTDIR\Common\afs_setup_utils_1046.dll" "$INSTDIR"
3216 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1046.dll" "$INSTDIR\Common\afsserver_1046.dll" "$INSTDIR"
3217 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1046.dll" "$INSTDIR\Common\afssvrcfg_1046.dll" "$INSTDIR"
3218 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1046.dll" "$INSTDIR\Common\TaAfsAccountManager_1046.dll" "$INSTDIR"
3219 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1046.dll" "$INSTDIR\Common\TaAfsAppLib_1046.dll" "$INSTDIR"
3220 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1046.dll" "$INSTDIR\Common\TaAfsServerManager_1046.dll" "$INSTDIR"
3221 File "..\..\doc\help\pt_BR\afs-cc.CNT"
3222 File "..\..\doc\help\pt_BR\afs-cc.hlp"
3223 File "..\..\doc\help\pt_BR\taafscfg.CNT"
3224 File "..\..\doc\help\pt_BR\taafscfg.hlp"
3225 File "..\..\doc\help\pt_BR\taafssvrmgr.CNT"
3226 File "..\..\doc\help\pt_BR\taafssvrmgr.hlp"
3227 File "..\..\doc\help\pt_BR\taafsusrmgr.CNT"
3228 File "..\..\doc\help\pt_BR\taafsusrmgr.hlp"
3231 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1046.pdb"
3232 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1046.pdb"
3233 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1046.pdb"
3234 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1046.pdb"
3235 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1046.pdb"
3236 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1046.pdb"
3237 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1046.pdb"
3238 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1046.pdb"
3244 SetOutPath "$INSTDIR\Documentation"
3245 File "..\..\doc\install\Documentation\zh_CN\README.TXT"
3246 SetOutPath "$INSTDIR\Documentation\html"
3247 File "..\..\doc\install\Documentation\zh_CN\html\*"
3248 SetOutPath "$INSTDIR\Documentation\html\index_files"
3249 ;File "..\..\doc\install\Documentation\zh_CN\html\index_files\*"
3250 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3251 File "..\..\doc\install\Documentation\zh_CN\html\InstallGd\*"
3252 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3253 File "..\..\doc\install\Documentation\zh_CN\html\ReleaseNotes\*"
3254 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3255 ;File "..\..\doc\install\Documentation\zh_CN\html\ReleaseNotes\logo_files\*"
3256 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3257 ;File "..\..\doc\install\Documentation\zh_CN\html\ReleaseNotes\relnotes_files\*"
3259 SetOutPath "$INSTDIR\Client\Program"
3260 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_2052.dll" "$INSTDIR\Client\Program\afscreds_2052.dll" "$INSTDIR"
3261 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_2052.dll" "$INSTDIR\Client\Program\afs_shl_ext_2052.dll" "$INSTDIR"
3263 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_2052.pdb"
3264 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_2052.pdb"
3267 File "..\..\doc\help\zh_CN\afs-light.CNT"
3268 File "..\..\doc\help\zh_CN\afs-light.hlp"
3269 File "..\..\doc\help\zh_CN\afs-nt.CNT"
3270 File "..\..\doc\help\zh_CN\afs-nt.HLP"
3272 SetOutPath "$INSTDIR\Common"
3273 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_2052.dll" "$INSTDIR\Common\afs_config_2052.dll" "$INSTDIR"
3274 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_2052.dll" "$INSTDIR\Common\afs_cpa_2052.dll" "$INSTDIR"
3275 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_2052.dll" "$INSTDIR\Common\afseventmsg_2052.dll" "$INSTDIR"
3276 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_2052.dll" "$INSTDIR\Common\afs_setup_utils_2052.dll" "$INSTDIR"
3277 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_2052.dll" "$INSTDIR\Common\afsserver_2052.dll" "$INSTDIR"
3278 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_2052.dll" "$INSTDIR\Common\afssvrcfg_2052.dll" "$INSTDIR"
3279 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_2052.dll" "$INSTDIR\Common\TaAfsAccountManager_2052.dll" "$INSTDIR"
3280 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_2052.dll" "$INSTDIR\Common\TaAfsAppLib_2052.dll" "$INSTDIR"
3281 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_2052.dll" "$INSTDIR\Common\TaAfsServerManager_2052.dll" "$INSTDIR"
3282 File "..\..\doc\help\zh_CN\afs-cc.CNT"
3283 File "..\..\doc\help\zh_CN\afs-cc.hlp"
3284 File "..\..\doc\help\zh_CN\taafscfg.CNT"
3285 File "..\..\doc\help\zh_CN\taafscfg.hlp"
3286 File "..\..\doc\help\zh_CN\taafssvrmgr.CNT"
3287 File "..\..\doc\help\zh_CN\taafssvrmgr.hlp"
3288 File "..\..\doc\help\zh_CN\taafsusrmgr.CNT"
3289 File "..\..\doc\help\zh_CN\taafsusrmgr.hlp"
3292 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_2052.pdb"
3293 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_2052.pdb"
3294 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_2052.pdb"
3295 ;File "${AFS_SERVER_BUILDDIR}\afsserver_2052.pdb"
3296 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_2052.pdb"
3297 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_2052.pdb"
3298 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_2052.pdb"
3299 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_2052.pdb"
3305 SetOutPath "$INSTDIR\Documentation"
3306 File "..\..\doc\install\Documentation\zh_TW\README.TXT"
3307 SetOutPath "$INSTDIR\Documentation\html"
3308 File "..\..\doc\install\Documentation\zh_TW\html\*"
3309 SetOutPath "$INSTDIR\Documentation\html\index_files"
3310 ;File "..\..\doc\install\Documentation\zh_TW\html\index_files\*"
3311 SetOutPath "$INSTDIR\Documentation\html\InstallGd"
3312 File "..\..\doc\install\Documentation\zh_TW\html\InstallGd\*"
3313 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
3314 File "..\..\doc\install\Documentation\zh_TW\html\ReleaseNotes\*"
3315 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
3316 ;File "..\..\doc\install\Documentation\zh_TW\html\ReleaseNotes\logo_files\*"
3317 SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
3318 ;File "..\..\doc\install\Documentation\zh_TW\html\ReleaseNotes\relnotes_files\*"
3320 SetOutPath "$INSTDIR\Client\Program"
3321 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1028.dll" "$INSTDIR\Client\Program\_1028.dll" "$INSTDIR"
3322 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1028.dll" "$INSTDIR\Client\Program\afs_shl_ext_1028.dll" "$INSTDIR"
3324 ;File "${AFS_CLIENT_BUILDDIR}\afscreds_1028.pdb"
3325 ;File "${AFS_CLIENT_BUILDDIR}\afs_shl_ext_1028.pdb"
3328 File "..\..\doc\help\zh_TW\afs-light.CNT"
3329 File "..\..\doc\help\zh_TW\afs-light.hlp"
3330 File "..\..\doc\help\zh_TW\afs-nt.CNT"
3331 File "..\..\doc\help\zh_TW\afs-nt.HLP"
3333 SetOutPath "$INSTDIR\Common"
3334 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_config_1028.dll" "$INSTDIR\Common\afs_config_1028.dll" "$INSTDIR"
3335 !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afs_cpa_1028.dll" "$INSTDIR\Common\afs_cpa_1028.dll" "$INSTDIR"
3336 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afseventmsg_1028.dll" "$INSTDIR\Common\afseventmsg_1028.dll" "$INSTDIR"
3337 ;!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afs_setup_utils_1028.dll" "$INSTDIR\Common\afs_setup_utils_1028.dll" "$INSTDIR"
3338 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsserver_1028.dll" "$INSTDIR\Common\afsserver_1028.dll" "$INSTDIR"
3339 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afssvrcfg_1028.dll" "$INSTDIR\Common\afssvrcfg_1028.dll" "$INSTDIR"
3340 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1028.dll" "$INSTDIR\Common\TaAfsAccountManager_1028.dll" "$INSTDIR"
3341 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1028.dll" "$INSTDIR\Common\TaAfsAppLib_1028.dll" "$INSTDIR"
3342 !insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1028.dll" "$INSTDIR\Common\TaAfsServerManager_1028.dll" "$INSTDIR"
3343 File "..\..\doc\help\zh_TW\afs-cc.CNT"
3344 File "..\..\doc\help\zh_TW\afs-cc.hlp"
3345 File "..\..\doc\help\zh_TW\taafscfg.CNT"
3346 File "..\..\doc\help\zh_TW\taafscfg.hlp"
3347 File "..\..\doc\help\zh_TW\taafssvrmgr.CNT"
3348 File "..\..\doc\help\zh_TW\taafssvrmgr.hlp"
3349 File "..\..\doc\help\zh_TW\taafsusrmgr.CNT"
3350 File "..\..\doc\help\zh_TW\taafsusrmgr.hlp"
3353 ;File "${AFS_CLIENT_BUILDDIR}\afs_config_1028.pdb"
3354 ;File "${AFS_CLIENT_BUILDDIR}\afs_cpa_1028.pdb"
3355 ;File "${AFS_SERVER_BUILDDIR}\afseventmsg_1028.pdb"
3356 ;File "${AFS_SERVER_BUILDDIR}\afsserver_1028.pdb"
3357 ;File "${AFS_SERVER_BUILDDIR}\afssvrcfg_1028.pdb"
3358 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAccountManager_1028.pdb"
3359 ;File "${AFS_SERVER_BUILDDIR}\TaAfsAppLib_1028.pdb"
3360 ;File "${AFS_SERVER_BUILDDIR}\TaAfsServerManager_1028.pdb"
3366 ; Write start menu shortcut
3367 SetOutPath "$SMPROGRAMS\OpenAFS"
3368 CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation.lnk" "$INSTDIR\Documentation\html\index.htm"
3375 ;====================================================
3376 ; AddToPath - Adds the given dir to the search path.
3377 ; Input - head of the stack
3378 ; Note - Win9x systems requires reboot
3379 ;====================================================
3386 # don't add if the path doesn't exist
3387 IfFileExists $0 "" AddToPath_done
3394 StrCmp $2 "" "" AddToPath_done
3399 StrCmp $2 "" "" AddToPath_done
3400 GetFullPathName /SHORT $3 $0
3405 StrCmp $2 "" "" AddToPath_done
3410 StrCmp $2 "" "" AddToPath_done
3414 StrCmp $1 1 AddToPath_NT
3417 FileOpen $1 "$1\autoexec.bat" a
3420 IntCmp $2 26 0 +2 +2 # DOS EOF
3421 FileSeek $1 -1 END # write over EOF
3422 FileWrite $1 "$\r$\nSET PATH=%PATH%;$3$\r$\n"
3428 ReadRegStr $1 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH"
3429 StrCpy $2 $1 1 -1 # copy last char
3430 StrCmp $2 ";" 0 +2 # if last char == ;
3431 StrCpy $1 $1 -1 # remove last char
3432 StrCmp $1 "" AddToPath_NTdoIt
3435 WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH" $0
3436 SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
3445 ;====================================================
3446 ; RemoveFromPath - Remove a given dir from the path
3447 ; Input: head of the stack
3448 ;====================================================
3449 Function un.RemoveFromPath
3458 IntFmt $6 "%c" 26 # DOS EOF
3462 StrCmp $1 1 unRemoveFromPath_NT
3465 FileOpen $1 "$1\autoexec.bat" r
3468 GetFullPathName /SHORT $0 $0
3469 StrCpy $0 "SET PATH=%PATH%;$0"
3470 Goto unRemoveFromPath_dosLoop
3472 unRemoveFromPath_dosLoop:
3474 StrCpy $5 $3 1 -1 # read last char
3475 StrCmp $5 $6 0 +2 # if DOS EOF
3476 StrCpy $3 $3 -1 # remove DOS EOF so we can compare
3477 StrCmp $3 "$0$\r$\n" unRemoveFromPath_dosLoopRemoveLine
3478 StrCmp $3 "$0$\n" unRemoveFromPath_dosLoopRemoveLine
3479 StrCmp $3 "$0" unRemoveFromPath_dosLoopRemoveLine
3480 StrCmp $3 "" unRemoveFromPath_dosLoopEnd
3482 Goto unRemoveFromPath_dosLoop
3483 unRemoveFromPath_dosLoopRemoveLine:
3485 Goto unRemoveFromPath_dosLoop
3487 unRemoveFromPath_dosLoopEnd:
3491 Delete "$1\autoexec.bat"
3492 CopyFiles /SILENT $4 "$1\autoexec.bat"
3494 Goto unRemoveFromPath_done
3496 unRemoveFromPath_NT:
3497 ReadRegStr $1 HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH"
3498 StrCpy $5 $1 1 -1 # copy last char
3499 StrCmp $5 ";" +2 # if last char != ;
3500 StrCpy $1 "$1;" # append ;
3503 Call un.StrStr ; Find `$0;` in $1
3504 Pop $2 ; pos of our dir
3505 StrCmp $2 "" unRemoveFromPath_done
3506 ; else, it is in path
3511 StrCpy $5 $1 -$4 # $5 is now the part before the path to remove
3512 StrCpy $6 $2 "" $3 # $6 is now the part after the path to remove
3515 StrCpy $5 $3 1 -1 # copy last char
3516 StrCmp $5 ";" 0 +2 # if last char == ;
3517 StrCpy $3 $3 -1 # remove last char
3519 WriteRegExpandStr HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "PATH" $3
3520 SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
3522 unRemoveFromPath_done:
3532 ;====================================================
3533 ; IsNT - Returns 1 if the current system is NT, 0
3535 ; Output: head of the stack
3536 ;====================================================
3540 ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
3541 StrCmp $0 "" 0 IsNT_yes
3553 !insertmacro IsNT ""
3554 !insertmacro IsNT "un."
3556 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3558 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3559 ;====================================================
3560 ; StrStr - Finds a given string in another given string.
3561 ; Returns -1 if not found and the pos if found.
3562 ; Input: head of the stack - string to find
3563 ; second in the stack - string to find in
3564 ; Output: head of the stack
3565 ;====================================================