title: Inno Setup - Pascal code visibility - "Unknown identifier" error
body: <p>I have a file in my installer with an <code>AfterInstall</code> action like so:</p>
  
  <pre><code>AfterInstall: UpdateImageLoaderConfigValues()
  </code></pre>
  
  <p>And I would like the procedure to call the same Pascal Script function twice as I can't have two <code>AfterInstall</code> actions as far as I am aware, so I have set this up like so:</p>
  
  
  
  <pre class="lang-pascal prettyprint-override"><code>procedure UpdateImageLoaderConfigValues();
  begin
    SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastConfigurationPath}, ExpandConstant('{app}/Configurations'))
    SaveValueToXML(ExpandConstant('{app}\ImageLoader.exe.config'),{#ImageLoaderLastImagePath}, ExpandConstant('{app}/Images'))
  end;
  </code></pre>
  
  <p>And my function <code>SaveValueToXML</code> has a signature:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>function SaveValueToXML(const AFileName, APath, AValue: string);
  </code></pre>
  
  <p>The problem is that compilation fails because of</p>
  
  <blockquote>
    <p>Unknown identifier 'SaveValueToXML'</p>
  </blockquote>
  
  <p>error at the points in <code>UpdateImageLoaderConfigValues</code> where I am trying to use this function.</p>
  
  <p>How can I make <code>SaveValueToXML</code> visible to <code>UpdateImageLoaderConfigValues</code>?</p>