How does Windows 7 modify the default installation directory?

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.