Search code examples
visual-studiocomregsvr32dllregistration

How do I unregister COM dlls initially added with RegSvr32 when the /u arg doesn't work?


Right, initially ran:

c:\regsvr32 Amazing.dll

then, (accidentally - I might add) I must have run it again, and (indeed) again when new versions of 'Amazing.dll' were released. Yes - I know now I should've run:

c:\regsvr32 /u Amazing.dll

beforehand - but hey! I forgot.

To cut to the chase, when add the COM reference in VS, I can see 3 instances of 'Amazing' all pointing to the same location (c:\Amazing.dll), running regsvr32 /u removes one of the references, the second time - does nothing...

How do I get rid of these references? Am I looking at a regedit scenario? - If so - what exactly happens if I delete one of the keys???

Cheers


Solution

  • Your object's GUID's should not be changing. In other words, once you register the COM object, re-registering shouldn't be adding anything additional to the registry.

    Unless you added additional COM interfaces or objects to the project.

    In any case, if this is a one time deal (and it sounds like it is), open regedit and delete the unneeded keys manually.