I have a C# Visual Studio 2008 project and I want use a COM interop XXXXLib (XXXX.dll).
Of course I have to add reference to %windir%\system32\xxxx.dll before, and VS will add Interop.xxxx.dll to the project folder, and now I have to distribute this 200 KB library with my simple 4 KB application.
But, now I know that PCs don't have XXXXLib or don't want use it. And in my application .NET needs check if exists COM in clients.
If COM does not exist on client's PCs, I want my application not to fail. I think I need not to reference the Interop, and use reflection for loading the interop.xxxx.dll, or another solution.
Other secondary issue, how do I check if COM exists in on client computers?
Do you have any good sample code?
I ask for gurus, for the best solution and I will give all my love to gurus.