Hi All,
I am comparing two versions strings in WIX.
like in below code where INSTALLED_PRODUCTVERSION = previous installed version and CURRENTVERSION = current version of the product.
<Condition Message="Error msg"><![CDATA[INSTALLED_PRODUCTVERSION<CURRENTVERSION]]> OR <![CDATA[INSTALLED_PRODUCTVERSION=CURRENTVERSION]]></Condition>
But it works fine from 5.0.0 to 5.0.9 but when if
INSTALLED_PRODUCTVERSION = 5.0.9 and
CURRENTVERSION = 5.0.10
then it says 5.0.9 is greater than 5.0.10
I want to compare version same like number not like string.
Can anyone help me out here?
Thanks,
Hukum
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Version string comparision as number
Started by
hukum.shah
, Apr 28 2009 14:08
1 reply to this topic
Posted 29 April 2009 - 17:45
There's not built in MSI functionality for version number comparisons. It alsways performs an alphabetic comparison.
Where do you get INSTALLED_PRODUCTVERSION from? If you're using the Upgrade table, you can specify version number limits there (where they will be compared properly). If you are using AppSearch you can specify version numbers for files signatures.
Where do you get INSTALLED_PRODUCTVERSION from? If you're using the Upgrade table, you can specify version number limits there (where they will be compared properly). If you are using AppSearch you can specify version numbers for files signatures.
Stefan Krüger
InstallSite.org twitter facebook