Changeset 84945 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 25, 2020 10:22:05 AM (4 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Installer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk
r83991 r84945 155 155 -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \ 156 156 $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),-E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(VBOX_BRAND_$(lang)_LICENSE_RTF)') \ 157 -E ' BUILD_TYPE=$(KBUILD_TYPE)' \158 -E ' BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)'157 -E 'KBUILD_TYPE=$(KBUILD_TYPE)' \ 158 -E 'KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' 159 159 160 160 ifdef VBOX_SIGNING_MODE -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r84433 r84945 16 16 ; 17 17 18 !if $% BUILD_TYPE% == "debug"18 !if $%KBUILD_TYPE% == "debug" 19 19 !define _DEBUG ; Turn this on to get extra output 20 20 !endif … … 45 45 !define PRODUCT_PUBLISHER "$%VBOX_VENDOR%" 46 46 !define PRODUCT_COPYRIGHT "(C) $%VBOX_C_YEAR% $%VBOX_VENDOR%" 47 !define PRODUCT_OUTPUT "VBoxWindowsAdditions-$% BUILD_TARGET_ARCH%.exe"47 !define PRODUCT_OUTPUT "VBoxWindowsAdditions-$%KBUILD_TARGET_ARCH%.exe" 48 48 !define PRODUCT_WEB_SITE "http://www.virtualbox.org" 49 49 !define PRODUCT_INSTALL_KEY "${VENDOR_ROOT_KEY}\VirtualBox Guest Additions" … … 92 92 !include "ReplaceDLL.nsh" 93 93 94 !if $% BUILD_TARGET_ARCH% == "amd64"94 !if $%KBUILD_TARGET_ARCH% == "amd64" 95 95 !include "x64.nsh" 96 96 !endif … … 112 112 113 113 ; Icons 114 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit114 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 115 115 !define MUI_ICON "$%VBOX_NSIS_ICON_FILE%" 116 116 !define MUI_UNICON "$%VBOX_NSIS_ICON_FILE%" … … 194 194 !ifdef UNINSTALLER_ONLY 195 195 !echo "Uninstaller only!" 196 OutFile "$%PATH_TARGET%\VBoxWindowsAdditions-$% BUILD_TARGET_ARCH%-uninst.exe"196 OutFile "$%PATH_TARGET%\VBoxWindowsAdditions-$%KBUILD_TARGET_ARCH%-uninst.exe" 197 197 !else 198 OutFile "VBoxWindowsAdditions-$% BUILD_TARGET_ARCH%.exe"198 OutFile "VBoxWindowsAdditions-$%KBUILD_TARGET_ARCH%.exe" 199 199 !endif ; UNINSTALLER_ONLY 200 200 201 201 ; Define default installation directory 202 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit202 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 203 203 InstallDir "$PROGRAMFILES32\$%VBOX_VENDOR_SHORT%\VirtualBox Guest Additions" 204 204 !else ; 64-bit … … 252 252 !include "VBoxGuestAdditionsExternal.nsh" 253 253 !include "VBoxGuestAdditionsCommon.nsh" 254 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit only254 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit only 255 255 !include "VBoxGuestAdditionsNT4.nsh" 256 256 !endif … … 436 436 ${EndIf} 437 437 MessageBox MB_OK "${PRODUCT_NAME} Installer$\r$\n$\r$\n \ 438 Usage: VBoxWindowsAdditions-$% BUILD_TARGET_ARCH% [OPTIONS] [/l] [/S] [/D=<PATH>]$\r$\n$\r$\n \438 Usage: VBoxWindowsAdditions-$%KBUILD_TARGET_ARCH% [OPTIONS] [/l] [/S] [/D=<PATH>]$\r$\n$\r$\n \ 439 439 Options:$\r$\n \ 440 440 /depth=BPP$\tSets the guest's display color depth (bits per pixel)$\r$\n \ … … 622 622 ${LogVerbose} "No previous version of ${PRODUCT_NAME} detected" 623 623 ${EndIf} 624 !if $% BUILD_TARGET_ARCH% == "amd64"624 !if $%KBUILD_TARGET_ARCH% == "amd64" 625 625 ${LogVerbose} "Detected OS: Windows $g_strWinVersion (64-bit)" 626 626 !else … … 639 639 ; Which OS are we using? 640 640 ; @todo Use logic lib here 641 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit641 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 642 642 StrCmp $g_strWinVersion "NT4" nt4 ; Windows NT 4.0 643 643 !endif … … 657 657 Goto notsupported 658 658 659 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit659 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 660 660 nt4: ; Windows NT4 661 661 … … 836 836 ; Add Sun Ray client info keys 837 837 ; Note: We only need 32-bit keys (HKLM\Software / HKLM\Software\Wow6432Node) 838 !if $% BUILD_TARGET_ARCH% == "amd64"838 !if $%KBUILD_TARGET_ARCH% == "amd64" 839 839 WriteRegStr HKLM "SOFTWARE\Wow6432Node\Oracle\Sun Ray\ClientInfoAgent\ReconnectActions" "" "" 840 840 WriteRegStr HKLM "SOFTWARE\Wow6432Node\Oracle\Sun Ray\ClientInfoAgent\DisconnectActions" "" "" … … 1005 1005 Pop $0 1006 1006 ${If} $0 <> 0 ; Wrong architecture? Tell the world 1007 !if $% BUILD_TARGET_ARCH% == "amd64"1007 !if $%KBUILD_TARGET_ARCH% == "amd64" 1008 1008 MessageBox MB_ICONSTOP $(VBOX_NOTICE_ARCH_AMD64) /SD IDOK 1009 1009 !else -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh
r84735 r84945 45 45 46 46 Push $0 47 StrCpy "$0" "$INSTDIR\$% BUILD_TARGET_ARCH%"47 StrCpy "$0" "$INSTDIR\$%KBUILD_TARGET_ARCH%" 48 48 49 49 ; Root files … … 79 79 !endif 80 80 81 !if $% BUILD_TARGET_ARCH% == "amd64"81 !if $%KBUILD_TARGET_ARCH% == "amd64" 82 82 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll" 83 83 !if $%VBOX_WITH_MESA3D% == "1" … … 88 88 !endif 89 89 90 !endif ; $% BUILD_TARGET_ARCH% == "amd64"90 !endif ; $%KBUILD_TARGET_ARCH% == "amd64" 91 91 !endif ; $%VBOX_WITH_WDDM% == "1" 92 92 … … 99 99 !endif 100 100 101 !if $% BUILD_TARGET_ARCH% == "x86"101 !if $%KBUILD_TARGET_ARCH% == "x86" 102 102 SetOutPath "$0\VBoxMouse\NT4" 103 103 FILE "$%PATH_OUT%\bin\additions\VBoxMouseNT.sys" … … 123 123 FILE "$%PATH_OUT%\bin\additions\VBoxSF.sys" 124 124 FILE "$%PATH_OUT%\bin\additions\VBoxMRXNP.dll" 125 !if $% BUILD_TARGET_ARCH% == "amd64"125 !if $%KBUILD_TARGET_ARCH% == "amd64" 126 126 ; Only 64-bit installer: Also copy 32-bit DLLs on 64-bit target 127 127 FILE "$%PATH_OUT%\bin\additions\VBoxMRXNP-x86.dll" … … 138 138 FILE "$%VBOX_PATH_DIFX%\DIFxAPI.dll" 139 139 140 !if $% BUILD_TARGET_ARCH% == "x86"140 !if $%KBUILD_TARGET_ARCH% == "x86" 141 141 SetOutPath "$0\Tools\NT4" 142 142 FILE "$%PATH_OUT%\bin\additions\VBoxGuestDrvInst.exe" … … 158 158 ; R0 now contains 1 if we're a 64-bit process, or 0 if not 159 159 160 !if $% BUILD_TARGET_ARCH% == "amd64"160 !if $%KBUILD_TARGET_ARCH% == "amd64" 161 161 IntCmp $0 0 wrong_platform 162 162 !else ; 32-bit … … 484 484 !macro SetAppMode32 un 485 485 Function ${un}SetAppMode32 486 !if $% BUILD_TARGET_ARCH% == "amd64"486 !if $%KBUILD_TARGET_ARCH% == "amd64" 487 487 ${EnableX64FSRedirection} 488 488 SetRegView 32 … … 497 497 !macro SetAppMode64 un 498 498 Function ${un}SetAppMode64 499 !if $% BUILD_TARGET_ARCH% == "amd64"499 !if $%KBUILD_TARGET_ARCH% == "amd64" 500 500 ${DisableX64FSRedirection} 501 501 SetRegView 64 … … 819 819 820 820 ${LogVerbose} "Restoring original D3D files ..." 821 !if $% BUILD_TARGET_ARCH% == "x86"822 ${CopyFileEx} "${un}" "$SYSDIR\msd3d8.dll" "$SYSDIR\d3d8.dll" "Microsoft Corporation" "$% BUILD_TARGET_ARCH%"823 !endif 824 ${CopyFileEx} "${un}" "$SYSDIR\msd3d9.dll" "$SYSDIR\d3d9.dll" "Microsoft Corporation" "$% BUILD_TARGET_ARCH%"821 !if $%KBUILD_TARGET_ARCH% == "x86" 822 ${CopyFileEx} "${un}" "$SYSDIR\msd3d8.dll" "$SYSDIR\d3d8.dll" "Microsoft Corporation" "$%KBUILD_TARGET_ARCH%" 823 !endif 824 ${CopyFileEx} "${un}" "$SYSDIR\msd3d9.dll" "$SYSDIR\d3d9.dll" "Microsoft Corporation" "$%KBUILD_TARGET_ARCH%" 825 825 826 826 ${If} $g_bCapDllCache == "true" 827 !if $% BUILD_TARGET_ARCH% == "x86"828 ${CopyFileEx} "${un}" "$SYSDIR\dllcache\msd3d8.dll" "$SYSDIR\dllcache\d3d8.dll" "Microsoft Corporation" "$% BUILD_TARGET_ARCH%"829 !endif 830 ${CopyFileEx} "${un}" "$SYSDIR\dllcache\msd3d9.dll" "$SYSDIR\dllcache\d3d9.dll" "Microsoft Corporation" "$% BUILD_TARGET_ARCH%"831 ${EndIf} 832 833 !if $% BUILD_TARGET_ARCH% == "amd64"827 !if $%KBUILD_TARGET_ARCH% == "x86" 828 ${CopyFileEx} "${un}" "$SYSDIR\dllcache\msd3d8.dll" "$SYSDIR\dllcache\d3d8.dll" "Microsoft Corporation" "$%KBUILD_TARGET_ARCH%" 829 !endif 830 ${CopyFileEx} "${un}" "$SYSDIR\dllcache\msd3d9.dll" "$SYSDIR\dllcache\d3d9.dll" "Microsoft Corporation" "$%KBUILD_TARGET_ARCH%" 831 ${EndIf} 832 833 !if $%KBUILD_TARGET_ARCH% == "amd64" 834 834 ${CopyFileEx} "${un}" "$g_strSysWow64\msd3d8.dll" "$g_strSysWow64\d3d8.dll" "Microsoft Corporation" "x86" 835 835 ${CopyFileEx} "${un}" "$g_strSysWow64\msd3d9.dll" "$g_strSysWow64\d3d9.dll" "Microsoft Corporation" "x86" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstall.nsh
r82968 r84945 53 53 54 54 ; Delete vendor installation directory (only if completely empty) 55 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit55 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 56 56 RMDir /REBOOTOK "$PROGRAMFILES32\$%VBOX_VENDOR_SHORT%" 57 57 !else ; 64-bit … … 77 77 78 78 ; Which OS are we using? 79 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit79 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 80 80 StrCmp $g_strWinVersion "NT4" nt4 ; Windows NT 4.0 81 81 !endif … … 95 95 Goto notsupported 96 96 97 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit97 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 98 98 nt4: 99 99 … … 137 137 138 138 ; Which OS are we using? 139 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit139 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 140 140 StrCmp $g_strWinVersion "NT4" nt4 ; Windows NT 4.0 141 141 !endif … … 155 155 Goto notsupported 156 156 157 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit157 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 158 158 nt4: 159 159 -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsUninstallOld.nsh
r82968 r84945 181 181 182 182 ; Delete vendor installation directory (only if completely empty) 183 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit183 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 184 184 RMDir /REBOOTOK "$PROGRAMFILES32\Sun" 185 185 !else ; 64-bit … … 248 248 249 249 ; Delete vendor installation directory (only if completely empty) 250 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit250 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 251 251 RMDir /REBOOTOK "$PROGRAMFILES32\Sun" 252 252 !else ; 64-bit … … 339 339 340 340 ; Delete vendor installation directory (only if completely empty) 341 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit341 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 342 342 RMDir /REBOOTOK "$PROGRAMFILES32\innotek" 343 343 !else ; 64-bit -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsVista.nsh
r82968 r84945 81 81 Function ${un}Vista_UninstallInstDir 82 82 83 !if $% BUILD_TARGET_ARCH% == "x86" ; 32-bit83 !if $%KBUILD_TARGET_ARCH% == "x86" ; 32-bit 84 84 Delete /REBOOTOK "$INSTDIR\netamd.inf" 85 85 Delete /REBOOTOK "$INSTDIR\pcntpci5.cat" … … 120 120 Delete /REBOOTOK "$g_strSystemDir\VBoxMMR.exe" 121 121 122 !if $% BUILD_TARGET_ARCH% == "amd64"122 !if $%KBUILD_TARGET_ARCH% == "amd64" 123 123 Delete /REBOOTOK "$g_strSysWow64\VBoxMMRHook.dll" 124 124 Delete /REBOOTOK "$INSTDIR\VBoxMMR-x86.exe" -
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh
r82968 r84945 247 247 !endif 248 248 249 !if $% BUILD_TARGET_ARCH% == "amd64"249 !if $%KBUILD_TARGET_ARCH% == "amd64" 250 250 FILE "$%PATH_OUT%\bin\additions\VBoxDispD3D-x86.dll" 251 251 !if $%VBOX_WITH_MESA3D% == "1" … … 255 255 FILE "$%PATH_OUT%\bin\additions\VBoxGL-x86.dll" 256 256 !endif 257 !endif ; $% BUILD_TARGET_ARCH% == "amd64"257 !endif ; $%KBUILD_TARGET_ARCH% == "amd64" 258 258 259 259 Goto doneCr … … 305 305 !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxMRXNP.dll" "$g_strSystemDir\VBoxMRXNP.dll" "$INSTDIR" 306 306 AccessControl::GrantOnFile "$g_strSystemDir\VBoxMRXNP.dll" "(BU)" "GenericRead" 307 !if $% BUILD_TARGET_ARCH% == "amd64"307 !if $%KBUILD_TARGET_ARCH% == "amd64" 308 308 ; Only 64-bit installer: Copy the 32-bit DLL for 32 bit applications. 309 309 !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxMRXNP-x86.dll" "$g_strSysWow64\VBoxMRXNP.dll" "$INSTDIR" … … 457 457 Delete /REBOOTOK "$INSTDIR\libWine.dll" 458 458 459 !if $% BUILD_TARGET_ARCH% == "amd64"459 !if $%KBUILD_TARGET_ARCH% == "amd64" 460 460 Delete /REBOOTOK "$INSTDIR\VBoxDispD3D-x86.dll" 461 461 !if $%VBOX_WITH_MESA3D% == "1" … … 468 468 Delete /REBOOTOK "$INSTDIR\VBoxD3D9wddm-x86.dll" 469 469 Delete /REBOOTOK "$INSTDIR\wined3dwddm-x86.dll" 470 !endif ; $% BUILD_TARGET_ARCH% == "amd64"470 !endif ; $%KBUILD_TARGET_ARCH% == "amd64" 471 471 !endif ; $%VBOX_WITH_WDDM% == "1" 472 472 … … 525 525 526 526 Delete /REBOOTOK "$g_strSystemDir\VBoxDispD3D.dll" 527 !if $% BUILD_TARGET_ARCH% == "amd64"527 !if $%KBUILD_TARGET_ARCH% == "amd64" 528 528 Delete /REBOOTOK "$g_strSysWow64\VBoxDispD3D-x86.dll" 529 529 !endif … … 535 535 Delete /REBOOTOK "$g_strSystemDir\VBoxGL.dll" 536 536 537 !if $% BUILD_TARGET_ARCH% == "amd64"537 !if $%KBUILD_TARGET_ARCH% == "amd64" 538 538 Delete /REBOOTOK "$g_strSysWow64\VBoxNine-x86.dll" 539 539 Delete /REBOOTOK "$g_strSysWow64\VBoxSVGA-x86.dll" … … 586 586 ${CmdExecute} "$\"$INSTDIR\VBoxDrvInst.exe$\" service delete VBoxSF" "true" 587 587 Delete /REBOOTOK "$g_strSystemDir\VBoxMRXNP.dll" ; The network provider DLL will be locked 588 !if $% BUILD_TARGET_ARCH% == "amd64"588 !if $%KBUILD_TARGET_ARCH% == "amd64" 589 589 ; Only 64-bit installer: Also remove 32-bit DLLs on 64-bit target arch in Wow64 node 590 590 Delete /REBOOTOK "$g_strSysWow64\VBoxMRXNP.dll"
Note:
See TracChangeset
for help on using the changeset viewer.