Eli
Eli

Reputation: 1317

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.

Upvotes: 1

Views: 1985

Answers (1)

Oren
Oren

Reputation: 3248

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

Upvotes: 2

Related Questions