When we install the software, the default path is the ProgramFiles folder on the C drive. This is also the place to save the installation program files, but all the software is installed on the C drive. When the system has problems and needs to be reinstalled, it may Installing software has also become the most troublesome thing, so many users install program files on non-system partitions. But it is very troublesome to have to modify the path every time. The following method will let you do it once and for all, and let the default installation path of the software point to the disk partition you need.
1. Run regedit to open the registry editor
2. Find the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
Right-click in the registry ProgramFilesDir: C:\Program Files to modify the path, as shown below: