It will works until you can try to run something like
loRegistry.GetRegKey('', @lcGUID, tcProgID + '\clsid', HKEY_CLASSES_ROOT)
because HKEY_CLASSES_ROOT is not defined.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.