VirtualBox

Changeset 40136 in vbox


Ignore:
Timestamp:
Feb 15, 2012 3:23:33 PM (13 years ago)
Author:
vboxsync
Message:

VBoxMRXNP, Additions installer: build and install a 32 bit version for 64 bit guests.

Location:
trunk/src/VBox/Additions/WINNT
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk

    r38082 r40136  
    8282        $(PATH_STAGE_BIN)/additions/VBoxWHQLFake.exe \
    8383        $(PATH_STAGE_BIN)/additions/VBoxService.exe
     84ifeq ($(KBUILD_TARGET_ARCH),amd64)
     85      # Also include 32-bit network provider DLLs on 64-bit guests to enable
     86      # running 32-bit apps which use that.
     87      DRIVER_FILES += \
     88                $(PATH_STAGE_BIN)/additions/VBoxMRXNP-x86.dll
     89endif
    8490ifeq ($(KBUILD_TARGET_ARCH),x86)
    8591DRIVER_FILES += \
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsCommon.nsh

    r39558 r40136  
    185185  FILE "$%PATH_OUT%\bin\additions\VBoxSF.sys"
    186186  FILE "$%PATH_OUT%\bin\additions\VBoxMRXNP.dll"
     187  !if $%BUILD_TARGET_ARCH% == "amd64"
     188    ; Only 64-bit installer: Also copy 32-bit DLLs on 64-bit target
     189    FILE "$%PATH_OUT%\bin\additions\VBoxMRXNP-x86.dll"
     190  !endif
    187191
    188192  ; Auto-Logon
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditionsW2KXP.nsh

    r39574 r40136  
    332332  !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxMRXNP.dll" "$g_strSystemDir\VBoxMRXNP.dll" "$INSTDIR"
    333333  AccessControl::GrantOnFile "$g_strSystemDir\VBoxMRXNP.dll" "(BU)" "GenericRead"
     334  !if $%BUILD_TARGET_ARCH% == "amd64"
     335    ; Only 64-bit installer: Copy the 32-bit DLL for 32 bit applications.
     336    !insertmacro ReplaceDLL "$%PATH_OUT%\bin\additions\VBoxMRXNP-x86.dll" "$g_strSysWow64\VBoxMRXNP.dll" "$INSTDIR"
     337    AccessControl::GrantOnFile "$g_strSysWow64\VBoxMRXNP.dll" "(BU)" "GenericRead"
     338  !endif
    334339
    335340  ; The VBoxTray hook DLL also goes to the system directory; it might be locked
     
    714719  Pop $0 ; Ret value
    715720  Delete /REBOOTOK "$g_strSystemDir\VBoxMRXNP.dll" ; The network provider DLL will be locked
     721  !if $%BUILD_TARGET_ARCH% == "amd64"
     722    ; Only 64-bit installer: Also remove 32-bit DLLs on 64-bit target arch in Wow64 node
     723    Delete /REBOOTOK "$g_strSysWow64\VBoxMRXNP.dll"
     724  !endif ; amd64
    716725  Delete /REBOOTOK "$g_strSystemDir\drivers\VBoxSF.sys"
    717726
  • trunk/src/VBox/Additions/WINNT/SharedFolders/redirector/dll/Makefile.kmk

    r31661 r40136  
    3838        $(VBOX_LIB_IPRT_GUEST_R3)
    3939
     40#
     41# VBoxMRXNP-x86 - x86 version of VBoxMRXNP built for amd64 build
     42#
     43DLLS.win.amd64 += VBoxMRXNP-x86
     44VBoxMRXNP-x86_EXTENDS = VBoxMRXNP
     45VBoxMRXNP-x86_BLD_TRG_ARCH = x86
     46VBoxMRXNP-x86_LIBS = \
     47        $(VBOX_LIB_IPRT_GUEST_R3_X86) \
     48        $(VBOX_LIB_VBGL_R3_X86)
     49VBoxMRXNP-x86_DEFS = $(VBoxMRXNP_DEFS) VBOX_WOW64
     50
    4051include $(KBUILD_PATH)/subfooter.kmk
    4152
  • trunk/src/VBox/Additions/WINNT/SharedFolders/redirector/dll/vboxmrxp.rc

    r32394 r40136  
    3939         VALUE "InternalName",     "VBoxMRXNP.DLL\0"
    4040         VALUE "LegalCopyright",   VBOX_RC_LEGAL_COPYRIGHT
     41#ifdef VBOX_WOW64
     42         VALUE "OriginalFilename", "VBoxMRXNP-x86.DLL\0"
     43#else
    4144         VALUE "OriginalFilename", "VBoxMRXNP.DLL\0"
     45#endif
    4246         VALUE "ProductName",      VBOX_PRODUCT " Guest Additions\0"
    4347         VALUE "ProductVersion",   VBOX_VERSION_MAJOR "." VBOX_VERSION_MINOR "." VBOX_VERSION_BUILD ".r" VBOX_SVN_REV "\0"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette