Which runtime error are you getting? If it's an Automation error, then it could be due to registry corruption; otherwise, it would seem very unlikely.
There's no catch-all way to 'fix' the registry, though. If it complains about a particular component, try re-registering it using regsvr32.