How do I find whether a DLL file written in C# is registered or not programmatically?
I already tried this code, but it doesn't come off.
If I register a DLL file and check using this code it returns. If I unregister it and run this same piece of code, it returns true again. I'm giving the full-path of the DLL file as argument.
We developed a simple DLL file in Visual C++. After that we registered it. Now we want to confirm whether it is registered.
Bob, will you replace the piece of code on your own, it is still difficult for me?
If I register a DLL file, is there an entry present in the registry? Shall I find those entries and judge whether the DLL file is registered or not?
You need to find out the GUID of a COM object defined in the DLL. Then look at this registry key:
HKEY_CLASSES_ROOT\CLSID\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}\InprocServer32
Replace the x's with the GUID.
It should have a default value that contains the full path to the DLL.