title: Script for copying Files at the end of install : Inno Setup
body: <p>I explain my project : my setup will be delivered with 2 licence files beside him who they must not be include inside the concerned setup. Like this :</p>
  
  <p>Folder/ <br/>
  ----Setup.exe <br/>
  ----CanBTL.dat <br/>
  ----CanBTP.dat</p>
  
  <p>And i want, if that's sure they are here, to copy this files in a folder who will be build with Setup.exe. So i'm trying to make this code :</p>
  
  <p>I edit my script :
  EDIT :</p>
  
  <pre><code>[Code]
  function CheckForFile(CurPageID: Integer): Boolean;
  begin
  if (CurPageID = wpFinished) and (FileExists('CanBTL.dat' + 'CanBTP.dat')) then 
    begin
       FileCopy(ExpandConstant('CanBTL.dat' + 'CanBTP.dat'), ExpandConstant('{cf}\Folder\'), false); 
    end;
  end;
  </code></pre>
  
  <p>The goal is to copy the two .dat file next to the setup in a folder created by the setup.exe</p>
  
  <p>It compile, but seems to make nothing. My files are not copied.</p>
  
  <p>I'm still a beginner to the section code in Inno Setup so if anyone can help me?</p>
  
  <p>Thanks</p>