James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Problem with pre-requisite for vcredist_x86.exe (SP1)

Hi,

I need a pre-requisite that distiguishes vcredist_x86.exe for VS2005 with the vcredist_x86.exe for VS 2005 SP1, as the latter is needed for Vista.

Currently I am using the following as recommended by yourselves...
---------------------
For "VC Redist" prerequisite you can use "Registry key exists" as install condition with following key: HKLM\SOFTWARE\Microsoft\DevDiv\VC\Servicing\8.0\RED\1033\Install
---------------------

However this is true for both versions of vcredist_x86.exe, therefore if the old version is already installed then the new version does not get installed. Vista requires the new version, but may have the old version installed by something else.

All advice appreciated.

Cheers
James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

For information about detecting Visual Studio 2005 Service Pack 1 please see this page:
http://blogs.msdn.com/heaths/archive/20 ... ack-1.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
James Cox
Posts: 7
Joined: Mon Apr 16, 2007 9:53 pm

Hi,

Thanks for the info. Unfortunately I can't see the answer to my problem. The article talks about Visual Studio 2005 SP1 detection, however I am only detecting and installing the VC redist, not the whole of Visual Studio. Therefore detecting VS 2005 SP1 would usually fail, as I don't install or need it.

Is there any way to detect whether VC redist 2005 SP1 on it's own is installed?

Cheers
James
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can try to use this entry:

Code: Select all

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ {7299052b-02a4-4627-81f2-1818da5d550d} \ DisplayVersion
where DisplayVersion=8.0.56336.

If it doesn't work you can search the web for other registry entries created by the redistributable.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”