My Visual Studio installation was delete from a disk, so I tried to reinstall it.
In the middle of the installation i received an Error 1402 Could not open registery key <GUI>.
I tried to fix it manually but without success.
Try to reset the hole registry permissions with this command:
Windows 7 and Vista:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
Make sure you run this command as Administrator.