SetOutPath "$INSTDIR\Client\Program"
File "${AFS_CLIENT_BUILDDIR}\afsshare.exe"
!insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\libosi.dll" "$INSTDIR\Client\Program\libosi.dll" "$INSTDIR"
- !insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\libafsconf.dll" "$INSTDIR\Client\Program\libafsconf.dll" "$INSTDIR"
File "${AFS_CLIENT_BUILDDIR}\klog.exe"
File "${AFS_CLIENT_BUILDDIR}\tokens.exe"
File "${AFS_CLIENT_BUILDDIR}\unlog.exe"
!insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afsd_service.exe" "$INSTDIR\Client\Program\afsd_service.exe" "$INSTDIR"
File "${AFS_CLIENT_BUILDDIR}\symlink.exe"
File "${AFS_DESTDIR}\bin\kpasswd.exe"
- File "${AFS_SERVER_BUILDDIR}\pts.exe"
+ File "${AFS_DESTDIR}\bin\pts.exe"
File "${AFS_SERVER_BUILDDIR}\bos.exe"
File "${AFS_SERVER_BUILDDIR}\kas.exe"
File "${AFS_SERVER_BUILDDIR}\vos.exe"
File "${AFS_CLIENT_BUILDDIR}\afscpcc.exe"
; Remove the binaries from the old location if present
+ Delete /REBOOTOK "$INSTDIR\Client\Program\libafsconf.dll"
+ Delete "$INSTDIR\Client\Program\libafsconf.pdb"
Delete /REBOOTOK "$SYSDIR\afslogon.dll"
Delete "$SYSDIR\afscpcc.exe"
Delete "$SYSDIR\afslogon.pdb"
File "${AFS_SERVER_BUILDDIR}\vlserver.exe"
File "${AFS_SERVER_BUILDDIR}\volinfo.exe"
File "${AFS_SERVER_BUILDDIR}\volserver.exe"
+ File "${AFS_DESTDIR}\bin\ptclient.exe"
+ File "${AFS_DESTDIR}\bin\pt_util.exe"
;AFS Server common files
SetOutPath "$INSTDIR\Common"
File "..\..\..\..\doc\man-pages\html\5\*"
SetOutPath "$INSTDIR\Documentation\html\CmdRef\8"
File "..\..\..\..\doc\man-pages\html\8\*"
- SetOutPath "$INSTDIR\Documentation\html\SysAdminGd"
- File "..\..\doc\install\Documentation\en_US\html\SysAdminGd\*"
+ SetOutPath "$INSTDIR\Documentation\"
+ File /oname=AdminGuide.chm "..\..\..\..\doc\xml\AdminGuide\htmlhelp.chm"
+ File /oname=UserGuide.chm "..\..\..\..\doc\xml\AdminGuide\htmlhelp.chm"
goto DoneLanguage
DoGerman:
SetOutPath "$INSTDIR\Client\Program"
File "${AFS_CLIENT_BUILDDIR}\afsshare.pdb"
File "${AFS_CLIENT_BUILDDIR}\libosi.pdb"
- File "${AFS_CLIENT_BUILDDIR}\libafsconf.pdb"
+ ; remove old location if present
+ Delete "$INSTDIR\Client\Program\libafsconf.pdb"
File "${AFS_CLIENT_BUILDDIR}\klog.pdb"
File "${AFS_CLIENT_BUILDDIR}\tokens.pdb"
File "${AFS_CLIENT_BUILDDIR}\unlog.pdb"
File "${AFS_ETC_BUILDDIR}\fms.pdb"
File "${AFS_SERVER_BUILDDIR}\kaserver.pdb"
File "${AFS_SERVER_BUILDDIR}\ptserver.pdb"
+ File "${AFS_DESTDIR}\bin\ptclient.pdb"
+ File "${AFS_DESTDIR}\bin\pt_util.pdb"
File "${AFS_SERVER_BUILDDIR}\salvager.pdb"
File "${AFS_SERVER_BUILDDIR}\upclient.pdb"
File "${AFS_SERVER_BUILDDIR}\upserver.pdb"
File "${AFS_DESTDIR}\lib\afsauthent.pdb"
File "${AFS_DESTDIR}\lib\afspthread.pdb"
File "${AFS_DESTDIR}\lib\afsrpc.pdb"
+ File "${AFS_DESTDIR}\lib\libafsconf.pdb"
File "${AFS_SERVER_BUILDDIR}\afsclientadmin.pdb"
File "${AFS_SERVER_BUILDDIR}\afsprocmgmt.pdb"
File "${AFS_SERVER_BUILDDIR}\afsvosadmin.pdb"
Delete "$INSTDIR\Documentation\html\CmdRef\5\*"
Delete "$INSTDIR\Documentation\html\CmdRef\8\*"
Delete "$INSTDIR\Documentation\html\CmdRef\*"
- Delete "$INSTDIR\Documentation\html\ReleaseNotes\logo_files\*"
- Delete "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files\*"
- Delete "$INSTDIR\Documentation\html\ReleaseNotes\*"
- Delete "$INSTDIR\Documentation\html\SysAdminGd\*"
Delete /REBOOTOK "$INSTDIR\Common\afs_config.exe"
Delete /REBOOTOK "$INSTDIR\Common\afs_shl_ext.dll"
Delete /REBOOTOK "$INSTDIR\Client\Program\afscpcc.pdb"
RMDir /r "$INSTDIR\Documentation\html\CmdRef"
- RMDir /r "$INSTDIR\Documentation\html\ReleaseNotes"
- RMDir /r "$INSTDIR\Documentation\html\SysAdminGd"
RMDIr /r "$INSTDIR\Documentation\html"
RMDir "$INSTDIR\Documentation"
Delete "$SMPROGRAMS\OpenAFS\Control Center\Account Manager.lnk"
Delete "$SMPROGRAMS\OpenAFS\Control Center\Server Manager.lnk"
RMDIR "$SMPROGRAMS\OpenAFS\Control Center"
+ RMDir /r "$SMPROGRAMS\OpenAFS\Documentation"
RMDir /r "$SMPROGRAMS\OpenAFS\Client"
RMDir /r "$SMPROGRAMS\OpenAFS"
Delete "$SMSTARTUP\AFS Credentials.lnk"
File "${AFS_CLIENT_BUILDDIR}\afs_config.exe"
!insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afsauthent.dll" "$INSTDIR\Common\afsauthent.dll" "$INSTDIR"
!insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afspthread.dll" "$INSTDIR\Common\afspthread.dll" "$INSTDIR"
- !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afsrpc.dll" "$INSTDIR\Common\afsrpc.dll" "$INSTDIR"
+ !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\afsrpc.dll" "$INSTDIR\Common\afsrpc.dll" "$INSTDIR"
+ !insertmacro ReplaceDLL "${AFS_DESTDIR}\lib\libafsconf.dll" "$INSTDIR\Common\libafsconf.dll" "$INSTDIR"
!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsadminutil.dll" "$INSTDIR\Common\afsadminutil.dll" "$INSTDIR"
!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsclientadmin.dll" "$INSTDIR\Common\afsclientadmin.dll" "$INSTDIR"
!insertmacro ReplaceDLL "${AFS_SERVER_BUILDDIR}\afsprocmgmt.dll" "$INSTDIR\Common\afsprocmgmt.dll" "$INSTDIR"
!ENDIF
!ENDIF
+ ; Cleanup old documentation as the file names may have changed
+ DELETE "$SMPROGRAMS\OpenAFS\Documentation.lnk"
+ RMDIR /R "$INSTDIR\Documentation"
+
StrCmp $LANGUAGE ${LANG_ENGLISH} DoEnglish
StrCmp $LANGUAGE ${LANG_GERMAN} DoGerman
StrCmp $LANGUAGE ${LANG_SPANISH} DoSpanish
DoEnglish:
SetOutPath "$INSTDIR\Documentation"
- File "..\..\doc\install\Documentation\en_US\README.TXT"
- SetOutPath "$INSTDIR\Documentation\html"
- File "..\..\doc\install\Documentation\en_US\html\*"
- SetOutPath "$INSTDIR\Documentation\html\index_files"
- File "..\..\doc\install\Documentation\en_US\html\index_files\*"
- SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes"
- File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\*"
- SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\logo_files"
- File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\logo_files\*"
- SetOutPath "$INSTDIR\Documentation\html\ReleaseNotes\relnotes_files"
- File "..\..\doc\install\Documentation\en_US\html\ReleaseNotes\relnotes_files\*"
+ File /oname=ReleaseNotes.chm "..\..\..\..\doc\xml\ReleaseNotesWindows\htmlhelp.chm"
+
+ CreateDirectory "$SMPROGRAMS\OpenAFS\Documentation"
+ CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation\Release Notes.lnk" "$INSTDIR\Documentation\ReleaseNotes.chm"
SetOutPath "$INSTDIR\Client\Program"
!insertmacro ReplaceDLL "${AFS_CLIENT_BUILDDIR}\afscreds_1033.dll" "$INSTDIR\Client\Program\afscreds_1033.dll" "$INSTDIR"
done:
- ; Write start menu shortcut
- SetOutPath "$SMPROGRAMS\OpenAFS"
- CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation.lnk" "$INSTDIR\Documentation\html\index.htm"
-
+ ; Write start menu shortcut
+ SetOutPath "$SMPROGRAMS\OpenAFS"
+ CreateDirectory "$SMPROGRAMS\OpenAFS\Documentation"
+ CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation\Reference Manual.lnk" "$INSTDIR\Documentation\html\CmdRef\index.html"
+ CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation\Administrator Guide.lnk" "$INSTDIR\Documentation\AdminGuide.chm"
+ CreateShortCut "$SMPROGRAMS\OpenAFS\Documentation\User Guide.lnk" "$INSTDIR\Documentation\UserGuide.chm"
FunctionEnd