Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual c++ redistributable redistribution

I'm coming from a Linux background, but I'd like to provide a version of my software on Windows. For users to run my program, they will need the Visual C++ redistributable. I would like to provide it for them as part of the package.

My worry is that there, in the future, will be an SP2 of the Visual Studio 2008 Redistributable. If I provide them SP1, or ask them to install it themselves, will it clobber later versions of the dll's that may be required by future tools?

Is there any instruction to give users to make sure they do not do this?

I'd certainly not want to screw up someone's machine or other applications by giving them incorrect instructions.

Aside from the redistributable exe, I was going to provide my tool as a zip file which they can extract into any directory they please, so I was not planning on providing an installer.

like image 751
Juan Avatar asked Dec 01 '22 07:12

Juan


1 Answers

With VS 2008 the runtimes are manifested and will install side-by-side. So if your application is linked to SP1's runtime, it will run only with the SP1 runtime (unless a manifest explicitly indicates that the Sp1 version should be overridden).

So you're protected from that type of DLL hell, in exchange for another (the user must have the SP1 redistributable installed).

like image 152
Michael Burr Avatar answered Dec 06 '22 20:12

Michael Burr