title: automated build inno setup error
body: <p>This question is regarding getting version directly from assembly. I have followed instructions from <a href="https://stackoverflow.com/questions/357803/automated-build-version-number-with-wix-inno-setup-and-vs2008">this post</a></p>
  
  <p>My script looks as follow.</p>
  
  <pre><code>#define MyAppName "Keyboard Trader"
  #define SrcApp "Keyboard Trader.exe"
  #define FileVerStr GetFileVersion(SrcApp)
  #define StripBuild(str VerStr) Copy(VerStr, 1, RPos(".", VerStr)-1)
  #define AppVerStr StripBuild(FileVerStr)
  </code></pre>
  
  <p>But while compiling script it throws following Error</p>
  
  <pre><code>Compile started: Tuesday, Oct 11 2011 at 01:15 AM
  ---
  Compiling script with Inno Setup 5.4.2 (a)
  ---
  [ISPP] Preprocessing.
  ---------------------
  Compile Error!
  Line: 12
  **Error: [ISPP] Actual parameter VerStr is not of the declared type.**
  </code></pre>
  
  <p>What I am missing here? </p>