|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2008
Posts: 8
|
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. |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
http://nsis.sourceforge.net/WinSxS_Q...y_is_installed might be of help
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2006
Posts: 106
|
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. |
|
|
|
|
|
#4 |
|
Member
Join Date: Jun 2006
Location: Austria
Posts: 92
|
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: |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
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. |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2008
Posts: 8
|
Thanks a lot everyone for your answers.
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2011
Posts: 1
|
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: |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|