Old 24th April 2015, 16:11   #1
ShapeMedical
Junior Member
 
Join Date: Mar 2015
Posts: 6
Question Detecting VC 2013 C++ Redistributable

How best to first detect the presents of C++ 2013 Redistributable, then install it?

Last edited by Anders; 24th April 2015 at 23:35. Reason: Better title
ShapeMedical is offline   Reply With Quote
Old 24th April 2015, 17:55   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,524
Have you done any research on your own? I'm sure there is a MSDN blog post out there with some information and it has probably been discussed on this forum in the past...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 24th April 2015, 18:43   #3
ShapeMedical
Junior Member
 
Join Date: Mar 2015
Posts: 6
Really? It is not apparent that I am asking how to do it within the context of a Nullsoft script?
ShapeMedical is offline   Reply With Quote
Old 24th April 2015, 19:07   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,524
Quote:
Originally Posted by ShapeMedical View Post
Really? It is not apparent that I am asking how to do it within the context of a Nullsoft script?
Of course it is but I don't know the answer off the top of my head.

Referencing some other sources in your question would at least show that you did some kind of research before asking. http://blogs.msdn.com/b/astebner/arc.../10008146.aspx is a very good starting point. If things have not changed for 2013 then there appears to be two methods; checking the registry or calling MsiQueryProductState. This brings up a new question, are you looking for a specific version/service pack or just any install? 32 or 64 bit?

http://stackoverflow.com/questions/1...2-is-installed also talks about keys under HKLM\SOFTWARE\Microsoft\DevDiv\vc\Servicing which might be interesting to look into.

A fourth method is http://nsis.sourceforge.net/WinSxS_Q...y_is_installed but I don't believe this applies to the newer runtimes because they don't use SxS anymore IIRC.

I got all this information in less than 5 minutes with a simple google search.

I don't know if there is a canonical answer to what the best method is, you will have to do some more investigation and perhaps some testing. Once you decide on a method, actually doing the check in NSIS should not be that hard...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump