Modify the default installation directory under Windows 7

  
In the Windows system, the default program installation path is "C:Program Files", and the software to be installed will cause the C drive to be swollen, but it is very troublesome to manually select the installation directory each time the program is installed. There are a lot of articles on modifying the Windows default installation directory, but they are all for XP system. Many friends who use WIN7 system directly copy it. As a result, some programs or new installation programs that come with Win7 will report errors directly. Go to the path, etc.
The following describes the method of modifying the default installation directory under Windows7
1. Open the Registry Editor
Enter "regedit" in the Start menu search box, then press Enter.
2, 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 Windows The default installation directory, if you need to set "D:window" is the default installation directory, then change this value to "D:window".
The above method is the method to modify the default installation directory under XP. But under Win7 modify the default installation directory in addition to the above operations, the following is the focus.
3, under the Win7 system as an administrator login, copy the "Program Files" folder under the C drive to the D drive, modify the directory name "window". Do not copy the files inside 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
4, delete the " under 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