title: Retrieving version of an MSI file (built with WiX)
body: <p>I've created an MSI file with WiX. The source WiX file contains the version information like this:</p>
  
  <pre><code>&lt;Product Id="..." 
           Name="..." 
           Language="1033" 
           Version="1.0.0.1" 
           Manufacturer="..." 
           UpgradeCode="..."&gt;
  </code></pre>
  
  <p>The MSI file seem to work OK: it installs, it uninstalls, it upgrades when I increase the version number, etc. </p>
  
  <p>However, when I attempt to get the version information about this file by calling the MsiGetFileVersion() API, it returns error 1006 (ERROR_FILE_INVALID
   File does not contain version information.)</p>
  
  <p>Hence my question: how to (programmatically, in C++) retrieve the version number of an MSI file? Or, to put it another way, where in the WiX file should the version information go in order to be retrievable via MsiGetFileVersion()?</p>
  
  <p>More information: The same error occurs with MSI 3.0 on Windows XP and MSI 4.0 on Vista.</p>