If you have messed up the registry and are unable to restore it then you will have to reinstall the affected programme(s) to reset the registry entries.
PS. There is not usually any need to clean the registry if you are using Windows newer than Windows 7.
Microsoft recommend that you do not use any registry cleaner: