title: Extra character added using {#emit SetupSetting("AppId")} in Inno Setup
body: <p>I'm having problems using the following code, it's adding an extra "{".</p>
  
  <p>For example:</p>
  
  <pre><code>[Setup]
  AppID={{E643099E-1ECE-474F-B043-1E7A7CE405AA}
  
  [Code]
  const
    INSTALL_KEY = 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{#emit SetupSetting("AppId")}_is1';
  </code></pre>
  
  <p>Returns the following:</p>
  
  <pre><code>INSTALL_KEY = 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{{E643099E-1ECE-474F-B043-1E7A7CE405AA}_is1';
  </code></pre>
  
  <p>Which obviously won't work detecting that key with RegKeyExists(HKLM, INSTALL_KEY) because of the extra "{" that isn't in the real path and the script won't compile if you remove the extra character in [Setup] because then it thinks it's a constant.</p>