Why isn't my Registry Launch Condition working in my Windows Installer file?

I'm trying to check for SharePoint 2010 being installed before permitting the installer to continue. In order for this to happen, I added the following "Search Target Machine" property:

Name = "Search for MOSS2010" Property = SHAREPOINT2010INSTALLED RegKey = SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0 Root = vsdrrHKLM Value = SharePoint

On my system, the path indicated exists and the Value "SharePoint" is "Installed"

Now, I added a Launch Condition: Name = SharePoint 2010 Installed Condition = SHAREPOINT2010INSTALLED="Installed" InstallUrl = (blank) Message = SharePoint 2010 must be installed prior to installation of this package.

Now, on my system, with SP2010 installed, this is evaluating as false, because the installer is failing with the above message.

Is there a way to debug the Properties value at install-time? Or is there something stupid I'm doing?

Thanks.

Answers


It sounds like your installer may be (for example) a 32-bit installer, but the registry keys may be in the 64-bit registry (or vice-versa).

To create a 64-bit installer via Visual Studio, see: http://msdn.microsoft.com/en-us/library/cd7a85k9.aspx


Need Your Help

Why nth-child to add style to alternate visible element not working?

javascript jquery html css

I am working on adding style to Alternate Visible Elements. Initially i thought of using nth-child(2n+1) idea, but apparently it doesn't works!. To boil down my problem, below is the sample: