Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically determine if a COM library (.DLL) is installed

Is there a programmatic way in C# to determine whether a particular COM DLL has been installed? Or is this a matter of scanning the registry for the classId?

like image 316
dthrasher Avatar asked Apr 02 '09 14:04

dthrasher


1 Answers

What I usually did (and would do, if I needed this again) is try to create an object instance of a class you know is in the COM library - either by ProgID or GUID - and checking for failure.

like image 87
peSHIr Avatar answered Oct 25 '22 05:10

peSHIr