Detect if an assembly is available

Posted by jgaa on Stack Overflow See other posts from Stack Overflow or by jgaa
Published on 2010-04-28T15:45:51Z Indexed on 2010/04/28 16:13 UTC
Read the original article Hit count: 198

Filed under:
|

I'm implementing an installer in Java, that is supposed to download and install an application for non-privileged users in Windows (from XP and up). The application is written in C++, and depend on the usual VC runtime-libraries (msvcm90.dll and friends). In order to save bandwidth, I want to avoid downloading the VC redistributables if they already are available for the user. I do however have a problem finding a reliable method to detect if an assembly is installed.

If the assembly is missing, I will deploy it as described here:

http://msdn.microsoft.com/en-us/library/ms235291%28VS.80%29.aspx

So the question is simply how to detect if a (any) assembly is installed on the machine. It's no requirement that this can be done from Java. I can easily write a small probe in C++ and link it statically for the task.

jgaa

© Stack Overflow or respective owner

Related posts about c++

Related posts about deployment