I would not change the default installation location for programs. There are better ways in case you're running out of disk space.
Does the file C:\Windows\regedit.exe exist?
You can reverse your changes with System Restore (rstrui.exe).
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In windows 7 actually i tried to change default installation location so that i have done the following steps
1. Start Registry Editor by entering “Regedit” in the search All programs.
2. Locate the following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
3. Right click on the value named ProgramFilesDir & change the default value C:\Program Files to the path you want to install all your programs in.
4. Click OK and Exit.
changed my disk C: to F:
and after restarting my machine when i tried to open regedit.exe it shows as "*windows cannot find'C:\windows\regedit.exe'.*Make sure you typed the name correctly, and then try again." and also when i try to open applications through administrator it popups the same as windows cannot find. How can i revert it? please help with this.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I would not change the default installation location for programs. There are better ways in case you're running out of disk space.
Does the file C:\Windows\regedit.exe exist?
You can reverse your changes with System Restore (rstrui.exe).
Experimenting with the Windows Registry is risky business, especially if you don't create a backup and/or system restore point first. You can easily turn your computer into a brick.
Does "changed my disk C: to F:" mean that you made that change at the registry location mentioned in step 3 or did you make that change elsewhere? If elsewhere, where did you make that change?
It sounds as if you are able to get into Windows.