VirtualBox

Changeset 80302 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 15, 2019 4:47:43 PM (5 years ago)
Author:
vboxsync
Message:

Additions/WINNT/Installer: Remove Direct3D support for XPDM which was a hack anyway, no replacement using VMSVGA/VBoxSVGA for now, so XP has no 3D support at all for now, bugref:9529

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi

    r80278 r80302  
    787787  ${EndIf}
    788788!endif
    789 
    790   Call SetAppMode64
    791   SetOverwrite on
    792 
    793   ${If} $g_strSystemDir == ''
    794     StrCpy $g_strSystemDir "$SYSDIR"
    795   ${EndIf}
    796 
    797   SetOutPath $g_strSystemDir
    798   ${LogVerbose} "Installing XPDM Direct3D support ..."
    799   FILE "$%PATH_OUT%\bin\additions\VBoxD3D8.dll"
    800   FILE "$%PATH_OUT%\bin\additions\VBoxD3D9.dll"
    801   FILE "$%PATH_OUT%\bin\additions\wined3d.dll"
    802 
    803   ;
    804   ; Update DLL cache
    805   ;
    806   ${If} $g_bCapDllCache == "true"
    807     ${If} ${FileExists} "$g_strSystemDir\dllcache"
    808       SetOutPath "$g_strSystemDir\dllcache"
    809       ${CopyFileEx} "" "$g_strSystemDir\dllcache\d3d8.dll" "$g_strSystemDir\dllcache\msd3d8.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%"
    810       ${CopyFileEx} "" "$g_strSystemDir\dllcache\d3d9.dll" "$g_strSystemDir\dllcache\msd3d9.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%"
    811 
    812       ; Exchange DLLs
    813       ${PrepareWRPFileEx} "" "$g_strSystemDir\dllcache\d3d8.dll"
    814       ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP"
    815       ${PrepareWRPFileEx} "" "$g_strSystemDir\dllcache\d3d9.dll"
    816       ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP"
    817     ${Else}
    818         ${LogVerbose} "DLL cache does not exist, skipping"
    819     ${EndIf}
    820   ${EndIf}
    821 
    822   ;
    823   ; Save original DLLs (only if msd3d*.dll does not exist) ...
    824   ;
    825   SetOutPath $g_strSystemDir
    826   ${CopyFileEx} "" "$g_strSystemDir\d3d8.dll" "$g_strSystemDir\msd3d8.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%"
    827   ${CopyFileEx} "" "$g_strSystemDir\d3d9.dll" "$g_strSystemDir\msd3d9.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%"
    828 
    829   ; Exchange DLLs
    830   ${PrepareWRPFileEx} "" "$g_strSystemDir\d3d8.dll"
    831   ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP"
    832   ${PrepareWRPFileEx} "" "$g_strSystemDir\d3d9.dll"
    833   ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP"
    834 
    835 !if $%BUILD_TARGET_ARCH% == "amd64"
    836     ; Only 64-bit installer:
    837     ; Also copy 32-bit DLLs on 64-bit Windows in SysWOW64 node
    838     SetOutPath $g_strSysWow64
    839     ${LogVerbose} "Installing Direct3D support for 32-bit applications (SysWOW64: $g_strSysWow64) ..."
    840     FILE "$%VBOX_PATH_ADDITIONS_WIN_X86%\VBoxD3D8.dll"
    841     FILE "$%VBOX_PATH_ADDITIONS_WIN_X86%\VBoxD3D9.dll"
    842     FILE "$%VBOX_PATH_ADDITIONS_WIN_X86%\wined3d.dll"
    843 
    844     ;
    845     ; Update DLL cache
    846     ;
    847     ${If} $g_bCapDllCache == "true"
    848       ${If} ${FileExists} "$g_strSysWow64\dllcache"
    849         SetOutPath "$g_strSysWow64\dllcache"
    850         ${CopyFileEx} "" "$g_strSysWow64\dllcache\d3d8.dll" "$g_strSysWow64\dllcache\msd3d8.dll" "Microsoft Corporation" "x86"
    851         ${CopyFileEx} "" "$g_strSysWow64\dllcache\d3d9.dll" "$g_strSysWow64\dllcache\msd3d9.dll" "Microsoft Corporation" "x86"
    852 
    853         ; Exchange DLLs
    854         ${PrepareWRPFileEx} "" "$g_strSysWow64\dllcache\d3d8.dll"
    855         ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$g_strSysWow64\dllcache\d3d8.dll" "$TEMP"
    856         ${PrepareWRPFileEx} "" "$g_strSysWow64\dllcache\d3d9.dll"
    857         ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$g_strSysWow64\dllcache\d3d9.dll" "$TEMP"
    858       ${Else}
    859         ${LogVerbose} "DLL cache does not exist, skipping"
    860       ${EndIf}
    861     ${EndIf}
    862 
    863     ;
    864     ; Update original DLLs
    865     ;
    866 
    867     ; Save original DLLs (only if msd3d*.dll does not exist) ...
    868     ${CopyFileEx} "" "$g_strSysWow64\d3d8.dll" "$g_strSysWow64\msd3d8.dll" "Microsoft Corporation" "x86"
    869     ${CopyFileEx} "" "$g_strSysWow64\d3d9.dll" "$g_strSysWow64\msd3d9.dll" "Microsoft Corporation" "x86"
    870 
    871     ${PrepareWRPFileEx} "" "$g_strSysWow64\d3d8.dll"
    872     ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$g_strSysWow64\d3d8.dll" "$TEMP"
    873     ${PrepareWRPFileEx} "" "$g_strSysWow64\d3d9.dll"
    874     ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$g_strSysWow64\d3d9.dll" "$TEMP"
    875 
    876 !endif ; amd64
    877   Goto done
    878 
    879 error:
    880   ; @todo
    881   Goto exit
    882 
    883 done:
    884789
    885790!ifndef WFP_FILE_EXCEPTION
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