From: Jeffrey Altman Date: Mon, 3 Jul 2006 02:16:57 +0000 (+0000) Subject: STABLE14-windows-nsis-sdk-20060702 X-Git-Tag: openafs-stable-1_4_2-beta2~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=19e7a9b58754672495c3a52bd087c1caacb1df50;p=packages%2Fo%2Fopenafs.git STABLE14-windows-nsis-sdk-20060702 Move SDK to Program Files\OpenAFS\SDK (cherry picked from commit 5accc48e1b0db55c56ba64abe0450d511c0fdf2a) --- diff --git a/src/WINNT/install/NSIS/OpenAFS.nsi b/src/WINNT/install/NSIS/OpenAFS.nsi index 017717f7c..bf195b489 100644 --- a/src/WINNT/install/NSIS/OpenAFS.nsi +++ b/src/WINNT/install/NSIS/OpenAFS.nsi @@ -1035,14 +1035,14 @@ SectionEnd Section /o "Software Development Kit (SDK)" secSDK - SetOutPath "$INSTDIR\Client\Program\lib" - File /r "${AFS_CLIENT_LIBDIR}\*.*" + SetOutPath "$INSTDIR\SDK\lib" + File /r "${AFS_CLIENT_LIBDIR}\*.*" - SetOutPath "$INSTDIR\Client\Program\Include" - File /r "${AFS_BUILD_INCDIR}\*.*" + SetOutPath "$INSTDIR\SDK\Include" + File /r "${AFS_BUILD_INCDIR}\*.*" ; Client Sample - SetOutPath "$INSTDIR\Client\Program\Sample" + SetOutPath "$INSTDIR\SDK\Sample" File "..\..\afsd\sample\token.c" ;Store install folder @@ -1412,7 +1412,7 @@ NoDocs: ; the SDK is installed. If not, we don't need to push it on the user. ; If they are there, we want to make sure they match the installed version. CheckSDK: - IfFileExists "$INSTDIR\Client\Program\Include\main.h" +1 NoSDK + IfFileExists "$INSTDIR\SDK\Include\main.h" +1 NoSDK SectionGetFlags ${secSDK} $0 IntOp $0 $0 | ${SF_SELECTED} SectionSetFlags ${secSDK} $0 @@ -1802,15 +1802,21 @@ StartRemove: Delete /REBOOTOK "$INSTDIR\Client\Program\afscreds.pdb" + Delete /REBOOTOK "$INSTDIR\SDK\Include\*" + Delete /REBOOTOK "$INSTDIR\SDK\Include\afs\*" + Delete /REBOOTOK "$INSTDIR\SDK\Include\rx\*" + Delete /REBOOTOK "$INSTDIR\SDK\Sample\*" + Delete /REBOOTOK "$INSTDIR\SDK\*" + + RMDir "$INSTDIR\SDK\Sample" + RMDir "$INSTDIR\SDK\Include\afs" + RMDir "$INSTDIR\SDK\Include\rx" + RMDir "$INSTDIR\SDK\Include" + RMDir "$INSTDIR\SDK" + Delete /REBOOTOK "$INSTDIR\Client\Program\*" - Delete /REBOOTOK "$INSTDIR\Client\Program\Include\*" - Delete /REBOOTOK "$INSTDIR\Client\Program\Include\afs\*" - Delete /REBOOTOK "$INSTDIR\Client\Program\Include\rx\*" - Delete /REBOOTOK "$INSTDIR\Client\Program\Sample\*" - RMDir "$INSTDIR\Client\Program\Sample" - RMDir "$INSTDIR\Client\Program\Include\afs" - RMDir "$INSTDIR\Client\Program\Include\rx" - RMDir "$INSTDIR\Client\Program\Include" + Delete /REBOOTOK "$INSTDIR\Client\*" + RMDir "$INSTDIR\Client\Program" RMDir "$INSTDIR\Client"