Detect build availability

I am introducing an installer in Java that must download and install an application for non-privileged users on Windows (from XP and above). The application is written in C ++ and depends on the usual VC executable libraries (msvcm90.dll and friends). To save bandwidth, I want to avoid downloading redistributable VC packages if they are already available to the user. However, I have a problem finding a reliable method to detect assembly assemblies.

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 how to determine if any assembly is installed on the machine. This is not required to be possible with Java. I can easily write a small probe in C ++ and link it statically for the task.

jgaa

+3
source share
2 answers

If you want to write a small test program, instead of writing one that looks for your dependencies, write a file with the same dependencies as your application. Try to run it. If it works, the dependencies are in place. If this fails, the likely cause is the lack of dependencies.

+2
source

, . , DLL WinAPI LoadLibrary - DLL, .

LoadLibrary - DLL, , .

0

Source: https://habr.com/ru/post/1743208/


All Articles