0
votes

I am able to check registry for Visual C++ 2010 redistributables using WIX Bootsrapper using below code

util:RegistrySearch Id="VC2010x86" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86" Variable="CPP2010Redistx86" Value="Installed" Result="value"

But I do not know how I need check registry for Visual C++ 2008 redistributables using WIX Bootsraper.

What will be the key value I need to use for VC++ 2008 instead of Key="SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86" which I uses for VC++ 2010.

Kindly suggest.

1

1 Answers

2
votes

This seems to cover the ProductCodes you can search for:

http://blogs.msdn.com/b/astebner/archive/2009/01/29/9384143.aspx

or use them to look at the uninstall registry key.

or use them as dependencies. To be honest, I usually don't bother. I assume you have a redist exe that you are distributing anyway, so just run that exe and it will do the right thing. The issue is that MS might ship a security fix package at any time and you cannot predict the key value or ProductCodes, plus you need to woyry about the architecture etc. Is there a reason you can't just run the redist and let it discover whether it needs to be installed or not?