title: Binding WIX FileVersion sub values?
body: <p>In WIX, I can do this to automatically generate a decent version number for my MSI:</p>
  
  <pre><code>&lt;?define ProductVersion="!(bind.FileVersion.MyMainExecutable)" ?&gt;
  &lt;Product Version="$(var.ProductVersion)" ... /&gt;
  </code></pre>
  
  <p>That produces a string like "1.0.1.0" but I want only the first three parts: "1.0.1"</p>
  
  <p>How can I accomplish this?</p>