Changeset 39492 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Dec 1, 2011 2:42:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/VBoxGuestAdditions.nsi
r39491 r39492 734 734 SectionEnd 735 735 736 ; Prepares the access rights for replacing a WRP protected file 736 ; Prepares the access rights for replacing 737 ; a WRP (Windows Resource Protection) protected file 737 738 Function PrepareWRPFile 738 739 739 740 Pop $0 740 741 741 IfFileExists "$g_strSystemDir\takeown.exe" 0 +2 742 IfFileExists "$0" +3 +1 743 LogText "WRP: File $0 does not exist, skipping" 744 Return 745 746 IfFileExists "$g_strSystemDir\takeown.exe" +1 +4 742 747 nsExec::ExecToLog '"$g_strSystemDir\takeown.exe" /F "$0"' 748 Pop $1 ; Ret value 749 LogText "WRP: Taking ownership for $0 returned: $1" 750 743 751 AccessControl::SetFileOwner "$0" "(S-1-5-32-545)" 744 752 Pop $1 745 DetailPrint "Setting file owner for $0 returned $1" 753 DetailPrint "WRP: Setting file owner for $0 returned: $1" 754 746 755 AccessControl::GrantOnFile "$0" "(S-1-5-32-545)" "FullAccess" 747 756 Pop $1 748 DetailPrint " Setting access rights for $0 returned$1"757 DetailPrint "WRP: Setting access rights for $0 returned: $1" 749 758 750 759 !if $%VBOX_WITH_GUEST_INSTALL_HELPER% == "1" … … 752 761 VBoxGuestInstallHelper::DisableWFP "$0" 753 762 Pop $1 ; Get return value (ignored for now) 754 DetailPrint " Setting WFP exception for $0 returned$1"763 DetailPrint "WRP: Setting WFP exception for $0 returned: $1" 755 764 !endif 756 765 !endif … … 785 794 ; Update DLL cache 786 795 SetOutPath "$g_strSystemDir\dllcache" 787 IfFileExists "$g_strSystemDir\dllcache\msd3d8.dll" + 1796 IfFileExists "$g_strSystemDir\dllcache\msd3d8.dll" +2 788 797 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d8.dll" "$g_strSystemDir\dllcache\msd3d8.dll" 789 IfFileExists "$g_strSystemDir\dllcache\msd3d9.dll" + 1798 IfFileExists "$g_strSystemDir\dllcache\msd3d9.dll" +2 790 799 CopyFiles /SILENT "$g_strSystemDir\dllcache\d3d9.dll" "$g_strSystemDir\dllcache\msd3d9.dll" 791 800 … … 806 815 ; Save original DLLs (only if msd3d*.dll does not exist) ... 807 816 SetOutPath $g_strSystemDir 808 IfFileExists "$g_strSystemDir\msd3d8.dll" + 1817 IfFileExists "$g_strSystemDir\msd3d8.dll" +2 809 818 CopyFiles /SILENT "$g_strSystemDir\d3d8.dll" "$g_strSystemDir\msd3d8.dll" 810 IfFileExists "$g_strSystemDir\msd3d9.dll" + 1819 IfFileExists "$g_strSystemDir\msd3d9.dll" +2 811 820 CopyFiles /SILENT "$g_strSystemDir\d3d9.dll" "$g_strSystemDir\msd3d9.dll" 812 821 … … 842 851 ; Save original DLLs (only if msd3d*.dll does not exist) ... 843 852 SetOutPath "$SYSDIR\dllcache" 844 IfFileExists "$SYSDIR\dllcache\msd3d8.dll" + 1853 IfFileExists "$SYSDIR\dllcache\msd3d8.dll" +2 845 854 CopyFiles /SILENT "$SYSDIR\dllcache\d3d8.dll" "$SYSDIR\dllcache\msd3d8.dll" 846 IfFileExists "$SYSDIR\dllcache\msd3d9.dll" + 1855 IfFileExists "$SYSDIR\dllcache\msd3d9.dll" +2 847 856 CopyFiles /SILENT "$SYSDIR\dllcache\d3d9.dll" "$SYSDIR\dllcache\msd3d9.dll" 848 857 … … 867 876 ; Save original DLLs (only if msd3d*.dll does not exist) ... 868 877 SetOutPath $SYSDIR 869 IfFileExists "$SYSDIR\msd3d8.dll" + 1878 IfFileExists "$SYSDIR\msd3d8.dll" +2 870 879 CopyFiles /SILENT "$SYSDIR\d3d8.dll" "$SYSDIR\msd3d8.dll" 871 IfFileExists "$SYSDIR\msd3d9.dll" + 1880 IfFileExists "$SYSDIR\msd3d9.dll" +2 872 881 CopyFiles /SILENT "$SYSDIR\d3d9.dll" "$SYSDIR\msd3d9.dll" 873 882
Note:
See TracChangeset
for help on using the changeset viewer.