title: How can I extract a string from a C++ header file into an NSIS variable?
body: <p>I have an application whose version number is specified in a C/C++ header file, <code>version.h</code>:</p>
  
  <pre><code>#ifndef VERSION_H
  #define VERSION_H
  
  #define APPLICATION_VERSION "1.2.3"
  
  #endif
  </code></pre>
  
  <p>The version number is also specified in the NSIS script,</p>
  
  <pre><code>!ifndef VERSION
  !define VERSION "1.2.3"
  !endif
  </code></pre>
  
  <p>so that this string can be included in the name of the installer. Is there any way for the NSIS script to read this value directly out of <code>version.h</code> so that I only need to specify the version number in one place?</p>