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

Brian Enderle brianke at gmail.com
Mon Nov 9 11:55:25 PST 2015


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\Uninstall\{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


More information about the wix-users mailing list