How to modify the default installation directory of Win7 system

  
First, open the Registry Editor
Enter “regedit” in the Start menu search box and press Enter.
The second step, the registry modification ProgramFilesDir
expand the registry key "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion", find the "ProgramFilesDir" in the right window, the default value data is "C: Program Files", this This is the Windows default installation directory. If you need to set "D:window" as the default installation directory, change this value to "D:window".
The above method is to modify the default installation directory of the program under XP, but the default installation directory under Win7, in addition to the above operations, the following is the focus.
The third step is to log in as an administrator under Win7 system, copy the folder of "Program Files" in the C drive to the D drive, and modify the directory name to "window". Don't copy the files in the directory, because we have to copy the permissions of the directory. We can also enter the following command at the command line:
xcopy “C:Program Files” “D:window” /E /H /K /X /Y
The fourth step is to delete the "C drive" ;Program Files” folder, but you must first take ownership, add the rewrite permission before you can delete. This step is the most difficult, because Win7 permissions are difficult for rookie, but this operation is not necessary, you can not move this folder if your C drive is large enough.

Copyright © Windows knowledge All Rights Reserved