Search code examples
wixwix3wix3.7

How to combine Wix variables


I can use "!(bind.property.ProductVersion)" to set for example the UpgradeVersion\@Minimum attribute. Works fine. But now I want to set that attribute to something like:

"!(bind.property.ProductVersion.Major).!(bind.property.ProductVersion.Minor).0.0"

But that does not work. I get this error: The UpgradeVersion/@Maximum attribute's value, '!(bind.property.ProductVersion.Major).!(bind.property.ProductVersion.Minor).0.0', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.

Any ideas how I can get this to work?

Regards, Jaap


Solution

  • Unfortunately, it appears the version attribute is only allowed to have a single binder variable to replace the whole string. It doesn't support the scenario you describe. However, it seems like it should. You could file a bug at http://wixtoolset.org/bugs