Change the default installation location of computer software

Many software can only be installed by default, and the installation path cannot be selected. They can only be installed under the C drive.

This article explains how to change the default installation location of software in Windows.

First win + Ropen the run window by , and then enter to regeditopen the registry editor.
Insert image description here
Paste in the path box at the top 计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion, or find the corresponding folder in the left menu bar according to the path.
Insert image description here
There are four values ​​​​that may need to be changed here: CommonFilesDir, CommonFilesDir (x86), ProgramFilesDir, ProgramFilesDir (x86)
different The installation path in the registry when the software is installed is also different. You may not be able to view the source code, but you can get the installation path of the software from the prompt information during the installation process.
For example: the installation path of a certain software is C:\Program Files\xxx\xxx. From that we can work out what value the software is likely to get ProgramFilesDir, so just double-click on that item and make changes.

The figure below C:\Program Fileschanges the default installation path toD:\Program Files

Insert image description here
Install the software again and it will be installed D:\Program Filesin the directory.

Guess you like

Origin blog.csdn.net/qq_41340996/article/details/122366527