Win7 changes the system default installation directory after the program can not run the solution

  

When we use computer
, in order to reduce the size of the system C drive, generally install the program on other disks.

For convenience, we can modify the registry and change the system default installation directory C:\\Program Files to another disk. The method is as follows:

For example, the system default directory C:\\\\Program Files Change to D:\\\\Program Files, open Notepad and copy the following text:

Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion]“ProgramFilesDir”=”D:\\\\ Program Files” CommonFilesDir”=”D:\\\\Program Files\\\\Common Files”

Save the above code as: <;filename.reg” Double-click the saved file to put the registry information Just import the registry. Under the windows
7 system, you should pay attention to the problem. 1. When using the win7 system, if the system default installation directory is not modified, and the program is not installed in the C:\\Program Files directory, problems such as the icon of the 360 ​​security guard software are not displayed properly. 2. If you modify the system default installation directory, the system that comes with the system directory can't travel far. In this case, we should copy the files in the C:\\Program Files directory to the D:\\\\Program Files directory. Can solve the problem.





Copyright © Windows knowledge All Rights Reserved