Embedding other installers. The.NET CF Version 2 redistributable. I then install the Application I wrote for the client using a NSIS script. Thek 16th March 2009 16:59 UTC. 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.
I want to install VC++ Redist 2008 in my NSIS setup script. I got the following piece of script to do it:
Basically its for VC++ Redist 2005, but i've edited the reg settings to check for presence of 2008(is it ok to do so?). I need the piece of script/command to install the VC++ Redist 2008.
- where do i store the VC setup and how to execute in silent mode.
- Is it ok to check at
.onInit
?
Could someone please give a complete script which checks for presence and how to execute it in silent mode.
Thanks,
Seki1 Answer
Well I am not much sure about how to check for if vcredist
is already installed from registry.What I do for my installer is, to check for a particular dll file in the system which the vcredist
installs (and for which I am installing vcredist
). So if that file is present in my $WinDir I assume vcredist
is already installed otherwise I download & install(silently) the vcredist
.
Following is my script which may be of some help to you:
foobarfoobarNot the answer you're looking for? Browse other questions tagged nsismsvcrt or ask your own question.
How to detect if Visual C++ Redistributable for Visual Studio 2013 is installed?
I'm using Nullsoft NSIS Installer System but only I need Windows Registry entry
I have googled, and looked at other StackOverflow questions. In particular, this Detect if Visual C++ Redistributable for Visual Studio 2012 is installed provides the exact Registry key to check, but for the case of VS 2012.