[wix-users] looking to see if "version" of a pre requisite is installed

Hoover, Jacob Jacob.Hoover at greenheck.com
Tue Aug 25 11:28:01 PDT 2015


Could you search by upgrade code using the Upgrade/UgradeVersion providing the minimum version you support with a OnlyDetect=yes?  It also looks like we simplified that with a Property/ProductSearch[@UpgradeCode=X, Minimum=Y].

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steve Ogilvie
Sent: Tuesday, August 25, 2015 12:39 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] looking to see if "version" of a pre requisite is installed

Hi,

 

A product I am working on installs various Microsoft "pre requisites". Once being:

<!-- Check for Microsoft Sync Framework 2.1 Core Components
x86 -->

<Property
Id="SQLSYNCX86SEARCH" Secure="yes" Value="0">

 
<RegistrySearch Id="SQLSyncx86Search"

                     
Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7AC8EF88-D996-4D47-B40C-4DD93E307481}"

                     
Name="DisplayVersion"

                     
Root="HKLM"

                     
Type="raw"

                     
Win64="no"/>

</Property>

And a condition check:

<Condition
Message="$(var.PlatformProductName) requires Microsoft Sync Framework 2.1 Core Components (x86). Please install the pre-requisite, then restart the setup.">

     
<![CDATA[(Installed OR (SQLSYNCX86SEARCH > "0" AND NOT
VersionNT64) OR (VersionNT64))]]>

   
</Condition>

 

This was working great until a "newer" version of SQL Sync came out...

 

I need to look for Microsoft Sync Framework 2.1 Core Components version 2.1.1648.0 and greater...

 

Is there an easy way to look up without knowing the Product GUID?

 

is that right?

 

Cheers,

 

Steve 		 	   		   		 	   		  

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list