Now I am thinking of getting away from the idea of a regedit.exe being corrupted. How about the registry hives corruption? Will the corrupted hives prevent regedit from working properly? This needs to be answered by an expert.
There is one more method which will restore the registry with the original backed up values. I give below the details below.
Locked out of Windows because of a Corrupt Registry?
This page explains the location of the registry backup on the system and how to restore it.
The active registry values are stored in C:\Windows\system32\config
The backed up registry values are stored in C:\Windows\system32\config\Regback
The registry hives are System, Default, SAM, and Security.
Reboot the system and press F8 to get advanced boot options. Select the Repair option. Login as administrator and in the next screen select Command Prompt and navigate to C:\Windows\system32\config
CD C:\Windows\system32\config
do a dir command to view the files
Now rename the above System, Default, SAM, and Security files into System.sav, Default.sav, SAM.sav adn Security.sav
with the REN command
ex: Ren Software Software.sav
Now change to the Regback folder by the command
CD Regback
Copy the backuped System, Default, SAM, and Security files from Regback folder to
C:\Windows\system32\config folder with the commands
copy Sysem C:\Windows\system32\config
copy Default C:\Windows\system32\config
copy SAM C:\Windows\system32\config
copy Security C:\Windows\system32\config
I suggest replacing the hives with backup hives one by one (keeping the Software hive till end) and check by rebooting the system normally.
In this way if something goes wrong, we can always return the saved value of that particular hive and continue with other hives.
This process being complicated, one has to do it carefully step by step and check the system.
I have done this procedure previously for a windows XP installation using Sysinternals ERD Commander CD and was successful in bringing back the system to normal operation.
The only problem one may face is that with the Software hive replacement, the installed applications may not work properly and may need to be reinstalled.
Eventhough this process works, Please do this procedure at your own risk.