How does Windows 7 modify the default installation directory?

  
First, open the Registry Editor
Enter "regedit" in the Start menu search box and press Enter.
The second step, the registry modify ProgramFilesDir
expand the registry key "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion", find the "ProgramFilesDir" item in the right window, the default value data is "C:Program Files", this Is the default installation directory of Windows, if you need to set "D:window" as the default installation directory, then change this value to "D:window".
The above method is to modify the default installation directory of XP. Method, but modify 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 "Program Files" folder under the C drive to the D drive, and modify the directory name to "window". Do not 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
Step 4 Delete the " ;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