I'm using the deleteafterinstall
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?
The documentation doesn't mention what happens in that case:
deleteafterinstall
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.
This flag will not cause existing files that weren't replaced during installation to be deleted.
This flag cannot be combined with the isreadme, regserver, regtypelib, restartreplace, sharedfile, or uninsneveruninstall flags.