Binding WIX FileVersion sub values?

Viewed 6906

In WIX, I can do this to automatically generate a decent version number for my MSI:

<?define ProductVersion="!(bind.FileVersion.MyMainExecutable)" ?>
<Product Version="$(var.ProductVersion)" ... />

That produces a string like "1.0.1.0" but I want only the first three parts: "1.0.1"

How can I accomplish this?

1 Answers
Related