If you are experiencing any issues, please restore Windows 10 to an earlier date using the previously created restore point. Download a program and try to install it and check if it’s installed in the new installation directory. You might need to restart your computer to apply the change.
Step 4: Finally, close the Registry Editor and reboot your system to apply the change. Next, find ProgramFileDir (x86), double-click on it and change it value data to a location where you want to install programs by default. Step 3: On the right side, locate the value named “ProgramFilesDir” and change the default value “C:\Program Files” to your new directory path (address). HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion Step 2: Navigate to the following registry key in the Registry Editor: Step 1: Type Regedit in Start menu/taskbar search box or in the Run dialog box and hit enter key to continue.