WiX: Compare version “7.x.x.x” and “10.x.x.x”
问题 I have a WiX file where I have to do a version comparison to check prerequisites. The expression looks something like this: <Publish (attributes...)> <![CDATA[(VERSION<"7.0") OR (other expressions)]]> </Publish> This was working fine until now as the major version numbers went 7 to 8 to 9. We are now moving to version 10 and the string comparison is failing as "1" is less than "7". I would like "10.0"<"7.0" to evaluate to false as I intend to compare versions, but the expression evaluates to