title: Inno Setup "deleteafterinstall" flag: What happens if file is locked?
body: <p>I'm using the <code>deleteafterinstall</code> flag for some temporary files, but if they are still locked by a process at the time Inno Setup installer is finishing, will they be scheduled to be deleted later?</p>
  <p>The documentation doesn't mention what happens in that case:</p>
  <blockquote>
  <p>deleteafterinstall</p>
  <p>Instructs Setup to install the file as usual, but
  then delete it once the installation is completed (or aborted). This
  can be useful for extracting temporary data needed by a program
  executed in the script's [Run] section.</p>
  <p>This flag will not cause existing files that weren't replaced during
  installation to be deleted.</p>
  <p>This flag cannot be combined with the isreadme, regserver, regtypelib,
  restartreplace, sharedfile, or uninsneveruninstall flags.</p>
  </blockquote>