![]() |
Microsoft Visual C++ 2008 Redistributable Package
Hi
Is there a way to verify if Microsoft Visual C++ 2008 Redistributable Package (http://www.microsoft.com/downloads/d...displaylang=en) is installed on user's machine so I can show a warning if it is not? Thanks. |
http://nsis.sourceforge.net/WinSxS_Q...y_is_installed might be of help
|
Please do note that the user can have the required runtimes even if the redist isn't installed though...
One example would be if the user has Visual Studio 2008 installed. |
We solved this by installing the VS2008 redistributable always!
If its already installed this will do nothing if its an old version it will upgrade. And as far as I understand the MS license contract you are allowed to do this. code: |
It's a redistributable - yes, you can always call the installer even if it's already installed.
Myself, I just check the installation registry keys. Even IF the package -is- in fact already installed (which you might be able to determine via the WinSxS stuff).. if the registry keys are missing, it means it was installed via non-standard means (e.g. as part of a Visual Studio install), and (re-)installing is a good idea anyway. |
Thanks a lot everyone for your answers.
|
More Direct Help
Here is my effort at installing the redistributables (no guarantees or safety checks provided). There may be some cases of failure hereafter, but for my installer it has been a great benefit--only needing an install if it does not exist on the system. The codes I needed for the registry were obtained from http://blogs.msdn.com/b/astebner/arc...-2005-sp1.aspx.
code: |
| All times are GMT. The time now is 18:05. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.