Changeset 39513 in vbox
- Timestamp:
- Dec 2, 2011 12:11:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r39512 r39513 835 835 836 836 !if $%BUILD_TARGET_ARCH% == "amd64" 837 ; We need a special directory set to SysWOW64 because some 838 ; shell operations don't support file redirection (yet) 839 Var SYSWOW64DIR 840 StrCpy SYSWOW64DIR "$WINDIR\SysWOW64" 837 841 ; Only 64-bit installer: 838 842 ; Also copy 32-bit DLLs on 64-bit Windows in SysWOW64 node 839 ${EnableX64FSRedirection} 840 SetOutPath $SYSDIR 841 DetailPrint "Installing Direct3D support (SysWOW64: $SYSDIR) ..." 843 SetOutPath $SYSWOW64DIR 844 DetailPrint "Installing Direct3D support (SysWOW64: $SYSWOW64DIR) ..." 842 845 FILE "$%VBOX_PATH_ADDITIONS_WIN_X86%\libWine.dll" 843 846 FILE "$%VBOX_PATH_ADDITIONS_WIN_X86%\VBoxD3D8.dll" … … 850 853 851 854 ; Save original DLLs (only if msd3d*.dll does not exist) ... 852 SetOutPath "$SYS DIR\dllcache"853 IfFileExists "$SYS DIR\dllcache\msd3d8.dll" +2854 CopyFiles /SILENT "$SYS DIR\dllcache\d3d8.dll" "$SYSDIR\dllcache\msd3d8.dll"855 IfFileExists "$SYS DIR\dllcache\msd3d9.dll" +2856 CopyFiles /SILENT "$SYS DIR\dllcache\d3d9.dll" "$SYSDIR\dllcache\msd3d9.dll"857 858 Push "$SYS DIR\dllcache\d3d8.dll"855 SetOutPath "$SYSWOW64DIR\dllcache" 856 IfFileExists "$SYSWOW64DIR\dllcache\msd3d8.dll" +2 857 CopyFiles /SILENT "$SYSWOW64DIR\dllcache\d3d8.dll" "$SYSWOW64DIR\dllcache\msd3d8.dll" 858 IfFileExists "$SYSWOW64DIR\dllcache\msd3d9.dll" +2 859 CopyFiles /SILENT "$SYSWOW64DIR\dllcache\d3d9.dll" "$SYSWOW64DIR\dllcache\msd3d9.dll" 860 861 Push "$SYSWOW64DIR\dllcache\d3d8.dll" 859 862 Call PrepareWRPFile 860 863 861 Push "$SYS DIR\dllcache\d3d9.dll"864 Push "$SYSWOW64DIR\dllcache\d3d9.dll" 862 865 Call PrepareWRPFile 863 866 864 867 ; Exchange DLLs 865 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYS DIR\dllcache\d3d8.dll" "$TEMP"866 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYS DIR\dllcache\d3d9.dll" "$TEMP"868 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYSWOW64DIR\dllcache\d3d8.dll" "$TEMP" 869 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYSWOW64DIR\dllcache\d3d9.dll" "$TEMP" 867 870 868 871 ; If exchange above failed, do it on reboot 869 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYS DIR\dllcache\d3d8.dll" "$TEMP"870 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYS DIR\dllcache\d3d9.dll" "$TEMP"872 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYSWOW64DIR\dllcache\d3d8.dll" "$TEMP" 873 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYSWOW64DIR\dllcache\d3d9.dll" "$TEMP" 871 874 872 875 ; … … 875 878 876 879 ; Save original DLLs (only if msd3d*.dll does not exist) ... 877 SetOutPath $SYSDIR 878 IfFileExists "$SYSDIR\msd3d8.dll" +2 879 CopyFiles /SILENT "$SYSDIR\d3d8.dll" "$SYSDIR\msd3d8.dll" 880 IfFileExists "$SYSDIR\msd3d9.dll" +2 881 CopyFiles /SILENT "$SYSDIR\d3d9.dll" "$SYSDIR\msd3d9.dll" 882 883 Push "$SYSDIR\d3d8.dll" 880 IfFileExists "$SYSWOW64DIR\msd3d8.dll" +2 881 CopyFiles /SILENT "$SYSWOW64DIR\d3d8.dll" "$SYSWOW64DIR\msd3d8.dll" 882 IfFileExists "$SYSWOW64DIR\msd3d9.dll" +2 883 CopyFiles /SILENT "$SYSWOW64DIR\d3d9.dll" "$SYSWOW64DIR\msd3d9.dll" 884 885 Push "$SYSWOW64DIR\d3d8.dll" 884 886 Call PrepareWRPFile 885 887 886 Push "$SYS DIR\d3d9.dll"888 Push "$SYSWOW64DIR\d3d9.dll" 887 889 Call PrepareWRPFile 888 890 889 891 ; Exchange DLLs 890 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYS DIR\d3d8.dll" "$TEMP"891 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYS DIR\d3d9.dll" "$TEMP"892 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYSWOW64DIR\d3d8.dll" "$TEMP" 893 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYSWOW64DIR\d3d9.dll" "$TEMP" 892 894 893 895 ; If exchange above failed, do it on reboot 894 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYSDIR\d3d8.dll" "$TEMP" 895 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYSDIR\d3d9.dll" "$TEMP" 896 897 ${DisableX64FSRedirection} 896 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$SYSWOW64DIR\d3d8.dll" "$TEMP" 897 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$SYSWOW64DIR\d3d9.dll" "$TEMP" 898 898 899 !endif ; amd64 899 900 Goto done
Note:
See TracChangeset
for help on using the changeset viewer.