Changeset 50421 in vbox for trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
- Timestamp:
- Feb 12, 2014 11:12:01 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r50401 r50421 787 787 SectionEnd 788 788 789 ; Prepares the access rights for replacing790 ; a WRP (Windows Resource Protection) protected file791 Function PrepareWRPFile792 793 Pop $0794 795 ${IfNot} ${FileExists} "$0"796 ${LogVerbose} "WRP: File $0 does not exist, skipping"797 Return798 ${EndIf}799 800 ${If} ${FileExists} "$g_strSystemDir\takeown.exe"801 ${CmdExecute} "$\"$g_strSystemDir\takeown.exe$\" /F $\"$0$\"" "true"802 ${Else}803 ${LogVerbose} "WRP: Warning: takeown.exe not found, skipping"804 ${EndIf}805 806 AccessControl::SetFileOwner "$0" "(S-1-5-32-545)"807 Pop $1808 ${LogVerbose} "WRP: Setting file owner for $0 returned: $1"809 810 AccessControl::GrantOnFile "$0" "(S-1-5-32-545)" "FullAccess"811 Pop $1812 ${LogVerbose} "WRP: Setting access rights for $0 returned: $1"813 814 !if $%VBOX_WITH_GUEST_INSTALL_HELPER% == "1"815 !ifdef WFP_FILE_EXCEPTION816 VBoxGuestInstallHelper::DisableWFP "$0"817 Pop $1 ; Get return value (ignored for now)818 ${LogVerbose} "WRP: Setting WFP exception for $0 returned: $1"819 !endif820 !endif821 822 FunctionEnd823 824 789 ; Direct3D support 825 790 Section /o $(VBOX_COMPONENT_D3D) SEC03 … … 827 792 !if $%VBOX_WITH_WDDM% == "1" 828 793 ${If} $g_bWithWDDM == "true" 794 ${LogVerbose} "Installing WDDM Direct3D support ..." 795 829 796 ; Do we need to restore the original d3d8.dll/d3d9.dll files because the guest 830 797 ; installation was upgraded from XPDM to WDDM driver? In a XPDM installation … … 835 802 !endif 836 803 804 Call SetAppMode64 837 805 SetOverwrite on 838 806 … … 842 810 843 811 SetOutPath $g_strSystemDir 844 ${LogVerbose} "Installing Direct3D support ..."812 ${LogVerbose} "Installing XPDM Direct3D support ..." 845 813 FILE "$%PATH_OUT%\bin\additions\VBoxD3D8.dll" 846 814 FILE "$%PATH_OUT%\bin\additions\VBoxD3D9.dll" … … 856 824 ${CopyFileEx} "" "$g_strSystemDir\dllcache\d3d9.dll" "$g_strSystemDir\dllcache\msd3d9.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%" 857 825 858 Push "$g_strSystemDir\dllcache\d3d8.dll"859 Call PrepareWRPFile860 861 Push "$g_strSystemDir\dllcache\d3d9.dll"862 Call PrepareWRPFile863 864 826 ; Exchange DLLs 827 ${PrepareWRPFileEx} "" "$g_strSystemDir\dllcache\d3d8.dll" 865 828 ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\dllcache\d3d8.dll" "$TEMP" 829 ${PrepareWRPFileEx} "" "$g_strSystemDir\dllcache\d3d9.dll" 866 830 ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\dllcache\d3d9.dll" "$TEMP" 867 831 ${Else} … … 877 841 ${CopyFileEx} "" "$g_strSystemDir\d3d9.dll" "$g_strSystemDir\msd3d9.dll" "Microsoft Corporation" "$%BUILD_TARGET_ARCH%" 878 842 879 Push "$g_strSystemDir\d3d8.dll"880 Call PrepareWRPFile881 882 Push "$g_strSystemDir\d3d9.dll"883 Call PrepareWRPFile884 885 843 ; Exchange DLLs 844 ${PrepareWRPFileEx} "" "$g_strSystemDir\d3d8.dll" 886 845 ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d8.dll" "$g_strSystemDir\d3d8.dll" "$TEMP" 846 ${PrepareWRPFileEx} "" "$g_strSystemDir\d3d9.dll" 887 847 ${InstallFileEx} "" "$%PATH_OUT%\bin\additions\d3d9.dll" "$g_strSystemDir\d3d9.dll" "$TEMP" 888 848 … … 905 865 ${CopyFileEx} "" "$g_strSysWow64\dllcache\d3d9.dll" "$g_strSysWow64\dllcache\msd3d9.dll" "Microsoft Corporation" "x86" 906 866 907 Push "$g_strSysWow64\dllcache\d3d8.dll"908 Call PrepareWRPFile909 910 Push "$g_strSysWow64\dllcache\d3d9.dll"911 Call PrepareWRPFile912 913 867 ; Exchange DLLs 868 ${PrepareWRPFileEx} "" "$g_strSysWow64\dllcache\d3d8.dll" 914 869 ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$g_strSysWow64\dllcache\d3d8.dll" "$TEMP" 870 ${PrepareWRPFileEx} "" "$g_strSysWow64\dllcache\d3d9.dll" 915 871 ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$g_strSysWow64\dllcache\d3d9.dll" "$TEMP" 916 872 ${Else} … … 927 883 ${CopyFileEx} "" "$g_strSysWow64\d3d9.dll" "$g_strSysWow64\msd3d9.dll" "Microsoft Corporation" "x86" 928 884 929 Push "$g_strSysWow64\d3d8.dll" 930 Call PrepareWRPFile 931 932 Push "$g_strSysWow64\d3d9.dll" 933 Call PrepareWRPFile 934 935 ; Exchange DLLs 885 ${PrepareWRPFileEx} "" "$g_strSysWow64\d3d8.dll" 936 886 ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d8.dll" "$g_strSysWow64\d3d8.dll" "$TEMP" 887 ${PrepareWRPFileEx} "" "$g_strSysWow64\d3d9.dll" 937 888 ${InstallFileEx} "" "$%VBOX_PATH_ADDITIONS_WIN_X86%\d3d9.dll" "$g_strSysWow64\d3d9.dll" "$TEMP" 938 889
Note:
See TracChangeset
for help on using the changeset viewer.