[wix-users] Check for Version of Required Program during installation

Phil Wilson phil.wilson at mvps.org
Mon Nov 9 13:10:55 PST 2015


No need to trawl the registry. Use an Upgrade element with  an
UpgradeVersion referring to that other product's UpgradeCode,
OnlyDetect=yes, and use the property in a LaunchCondition. 

Phil 

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Brian Enderle
Sent: Monday, November 09, 2015 11:55 AM
To: WiX Users
Subject: [wix-users] Check for Version of Required Program during
installation

I would like to do a check during installation of Product B that Product A
is installed and at a certain version.  For instance,  I want to make sure
that Product A version 1.2.3 is installed, doing this check while I am
installing Product B (and not let Product B install if Product A at req'd
version is not found).

After installing Product A, I see in the registry
(HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Un
install\{GUID-9650})
that the Version is stored there as a hexidecimal value of '1010000'
(decimal value of '16842752')  The version of the installed Product A is
1.1.0

Is the Wow6432Node the correct place to retrieve this Version value?

I know how to do a condition to prevent installation from proceeding but how
would I compare the Version reported in registry to a version number in WiX,
i.e., how do I compare 1010000/16842752 to 1.1.0?


Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein

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




More information about the wix-users mailing list