Question

I have a program which depends on MSVCR90.dll, library which I'm shipping with it alongside the main executable among other things:

ProgramFolder\Main.exe
ProgramFolder\MSVCR90.dll

I wanted to know if when a new update to it is available (fixing a security issue for example) the one I supply would take precedence over the updated file in System32 or SxS.

Is there a way to programatically know which version of the C runtime is being used?

Was it helpful?

Solution

You can check the executables import header to find which version of C runtime it has got references to. Removing it from system32 directory wont help, instead it will create a crash.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top