First step, open Registry Editor
Type "regedit" in the Start menu search box, and then enter.
Step two, registry modification ProgramFilesDir
Expand the registry key "Hkey_local_machinesoftwaremicrosoftwindowscurrentversion" in turn and locate the "ProgramFilesDir" item in the right-hand window with the default numeric data "C: Program Files, this is the Windows default installation directory, if you need to set "D:window" as the default installation directory, then modify this value to "D:window".
The above method is XP to modify the default installation directory of the program, but the Win7 to modify the default installation directory in addition to performing the above operation, the following is the focus.
In the third step, log in as an administrator under the Win7 system, copy the program Files folder under C disk to D, and modify the directory name "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 fourth to delete the program Files folder under C disk, but to get ownership first, add Overtype permissions before you can delete them. This is the hardest step, because the Win7 permissions are difficult to set for the rookie, but this operation is not necessary, you can not move the C-disk is large enough to do this folder.