title: How do I automatically set the version of my Inno Setup installer according to my application version?
body: <p>I am using Inno Setup to generate the installer of my application. How can set the version number of the setup.exe (<code>VersionInfoVersion</code>) generated by Inno to match with the version number of my application automatically? Now every time I deploy a new version of my application I need to update the version number manually.</p>
  
  <p>Now I'm doing this:</p>
  
  <pre><code>[Setup]
  VersionInfoVersion=1.2.2.0 //writing the value manually
  </code></pre>
  
  <p>I want something like this:</p>
  
  <pre><code>[Setup]
  VersionInfoVersion={Get the version of my app}
  </code></pre>