title: How to get file version of msi file in Inno Setup
body: <p>I know <code>GetFileVersion</code> and <code>GetStringFileInfo</code> functions, but they do not work with <code>*.msi</code> files... Any idea...?</p>
  
  <pre><code>#define AppVersion GetFileVersion("path\MyFile.msi")
  #define AppVersion GetStringFileInfo("path\MyFile.msi", "FileVersion")
  </code></pre>
  
  <p>I was to use it like:</p>
  
  <pre><code>#define AppName "Google Chrome"
  #define AppName2 "Google Chrome x86/x64"
  #define AppVersion GetFileVersion("path\GoogleChromeStandaloneEnterprise.msi")
  #define AppExe "chrome.exe"
  
  [Setup]
  AppName={#AppName}
  AppVerName={#AppName2} v{#AppVersion}
  AppVersion={#AppVersion}
  VersionInfoVersion={#AppVersion}
  </code></pre>
  
  <p>I need get file version from <code>GoogleChromeStandaloneEnterprise.msi</code> file. </p>
  
  <hr>
  
  <p>Thanks Martin, it works like a charm...
  Regards... ;-)</p>