title: Code to run after all files are installed
body: <p>I got the following little function which I need to call after all files of the <code>[Files]</code> section have been copied</p>
  
  <pre class="lang-pascal prettyprint-override"><code>procedure DllAfterInstall(platform: Integer);
  begin
      if not installDriver(platform) then
                  MsgBox(ExpandConstant('{cm:installDriverFail}'), mbError, MB_OK);
  end;
  </code></pre>
  
  <p>where <code>installDriver(platform)</code> is an external function to one of my dll's.</p>
  
  <p>As soon as I try to call the <code>DllAfterInstall</code> function in the <code>[Run]</code> section like </p>
  
  <pre><code>Filename: "{code:DllAfterInstall}"; Parameters: 0; Check: not IsWin64
  </code></pre>
  
  <p>I got the error</p>
  
  <blockquote>
    <p>Invalid prototype for 'DllAfterInstall'</p>
  </blockquote>
  
  <p>So can anyone tell me what I'm doing wrong? Or maybe is there another way to call a <code>*.dll</code> after all files have been copied? The <code>*.dll</code> function should only be called once so <code>AfterInstall</code> is no option.</p>