Changeset 35365 in vbox for trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
- Timestamp:
- Dec 30, 2010 12:32:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r34745 r35365 756 756 ${EndIf} 757 757 758 ; crOpenGL: Do *not* install 64-bit files - they don't work yet (use !define LIBRARY_X64 later)759 ; Only 32-bit apps on 64-bit work (see next block)758 SetOutPath $g_strSystemDir 759 DetailPrint "Installing Direct3D support ..." 760 760 !if $%BUILD_TARGET_ARCH% == "x86" 761 SetOutPath $g_strSystemDir762 DetailPrint "Installing Direct3D support ..."763 761 FILE "$%PATH_OUT%\bin\additions\libWine.dll" 764 FILE "$%PATH_OUT%\bin\additions\VBoxD3D8.dll"765 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9.dll"766 FILE "$%PATH_OUT%\bin\additions\wined3d.dll"767 768 ; Update DLL cache769 SetOutPath "$g_strSystemDir\dllcache"770 IfFileExists "$g_strSystemDir\dllcache\msd3d8.dll" +1771 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d8.dll" "$g_strSystemDir\dllcache\msd3d8.dll"772 IfFileExists "$g_strSystemDir\dllcache\msd3d9.dll" +1773 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d9.dll" "$g_strSystemDir\dllcache\msd3d9.dll"774 775 Push "$g_strSystemDir\dllcache\d3d8.dll"776 Call PrepareWRPFile777 778 Push "$g_strSystemDir\dllcache\d3d9.dll"779 Call PrepareWRPFile780 781 ; Exchange DLLs782 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP"783 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP"784 785 ; If exchange above failed, do it on reboot786 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP"787 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP"788 789 ; Save original DLLs ...790 SetOutPath $g_strSystemDir791 IfFileExists "$g_strSystemDir\msd3d8.dll" +1792 CopyFiles /SILENT "$g_strSystemDir\d3d8.dll" "$g_strSystemDir\msd3d8.dll"793 IfFileExists "$g_strSystemDir\msd3d8.dll" +1794 CopyFiles /SILENT "$g_strSystemDir\d3d9.dll" "$g_strSystemDir\msd3d9.dll"795 796 Push "$g_strSystemDir\d3d8.dll"797 Call PrepareWRPFile798 799 Push "$g_strSystemDir\d3d9.dll"800 Call PrepareWRPFile801 802 ; Exchange DLLs803 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP"804 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP"805 806 ; If exchange above failed, do it on reboot807 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP"808 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP"809 762 !endif 763 FILE "$%PATH_OUT%\bin\additions\VBoxD3D8.dll" 764 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9.dll" 765 FILE "$%PATH_OUT%\bin\additions\wined3d.dll" 766 767 ; Update DLL cache 768 SetOutPath "$g_strSystemDir\dllcache" 769 IfFileExists "$g_strSystemDir\dllcache\msd3d8.dll" +1 770 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d8.dll" "$g_strSystemDir\dllcache\msd3d8.dll" 771 IfFileExists "$g_strSystemDir\dllcache\msd3d9.dll" +1 772 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d9.dll" "$g_strSystemDir\dllcache\msd3d9.dll" 773 774 Push "$g_strSystemDir\dllcache\d3d8.dll" 775 Call PrepareWRPFile 776 777 Push "$g_strSystemDir\dllcache\d3d9.dll" 778 Call PrepareWRPFile 779 780 ; Exchange DLLs 781 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP" 782 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP" 783 784 ; If exchange above failed, do it on reboot 785 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP" 786 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP" 787 788 ; Save original DLLs ... 789 SetOutPath $g_strSystemDir 790 IfFileExists "$g_strSystemDir\msd3d8.dll" +1 791 CopyFiles /SILENT "$g_strSystemDir\d3d8.dll" "$g_strSystemDir\msd3d8.dll" 792 IfFileExists "$g_strSystemDir\msd3d8.dll" +1 793 CopyFiles /SILENT "$g_strSystemDir\d3d9.dll" "$g_strSystemDir\msd3d9.dll" 794 795 Push "$g_strSystemDir\d3d8.dll" 796 Call PrepareWRPFile 797 798 Push "$g_strSystemDir\d3d9.dll" 799 Call PrepareWRPFile 800 801 ; Exchange DLLs 802 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP" 803 !insertmacro InstallLib DLL NOTSHARED NOREBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP" 804 805 ; If exchange above failed, do it on reboot 806 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP" 807 !insertmacro InstallLib DLL NOTSHARED REBOOT_NOTPROTECTED "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP" 810 808 811 809 !if $%BUILD_TARGET_ARCH% == "amd64"
Note:
See TracChangeset
for help on using the changeset viewer.