How to delete some files in win7 requires the trustedinstaller permission to install a dual system, and then to delete a system for some reasons, the system is on the drive C, the system to be deleted is on the drive D, however, when you delete the system files in drive D, you can find a method to obtain folder permissions by searching the network for a long time by "you require permission from trustedinstaller to make change". The Code is as follows (Registry):
Windows Registry Editor Version 5.00 www.2cto.com [HKEY_CLASSES_ROOT \ * \ shell \ runas] @ = "Take Ownership" "NoWorkingDirectory" = "" [HKEY_CLASSES_ROOT \ * \ shell \ runas \ command] @ = "cmd.exe/c takeown/f \" % 1 \ "& icacls \" % 1 \ "/grant administrators: F "" IsolatedCommand "=" cmd.exe/c takeown/f \ "% 1 \" & icacls \ "% 1 \"/grant administrators: F "[HKEY_CLASSES_ROOT \ Directory \ shell \ runas] @ =" Take Ownership "" NoWorkingDirectory "=" "[HKEY_CLASSES_ROOT \ Directory \ shell \ runas \ command] @ =" cmd.exe/c takeown/f \ "% 1 \"/r/d y & icacls \ "% 1 \"/grant administrators: f/t "" IsolatedCommand "=" cmd.exe/c takeown/f \ "% 1 \"/r/d y & icacls \ "% 1 \"/grant administrators: f/t "www.2cto.com -- uninstall the Registry File Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT \ * \ shell \ runas] [-HKEY_CLASSES_ROOT \ Directory \ shell \ runas]
For ease of use, you can make the code into a reg file and add it to the right-click menu. the zip folder is provided below. Of course, you can also create a new notepad and copy the above Code to the file, double-click can be added to the Registry. Andy Lau, http://files.cnblogs.com/xirongliu/win7-trustedinstaller.zip of win7_TrustedInstaller.zip