Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unregister DLL using regsvr32

This is driving me nuts.

I registered a DLL (COM) using

regsvr32 blabla.dll

In the meantime, I deleted this DLL manualy from disk.

How can I unregister this dll? I know the CLSID.

Edit:

Apparently I need to delete this from the registry.

What should I delete in the registry?

like image 240
Kugel Avatar asked Nov 28 '09 21:11

Kugel


2 Answers

The unregistration code lives in the DLL, unfortunately, so regsvr32 /u blabla.dll won't work; you'll need to manually delete the DLL's information from the Windows registry using regedit. I believe that the registration information is typically located in HKEY_CLASSES_ROOT\CLSID\{YOUR-CLSID}.

like image 158
Emerick Rogul Avatar answered Sep 20 '22 15:09

Emerick Rogul


Another way of fixing this is to put the dll back and unregister it. Then you can delete it.

We often have this at customers places with midas.dll where the registered path does not have the dll.

like image 39
Rohit Gupta Avatar answered Sep 18 '22 15:09

Rohit Gupta