AppMutex with Inno Setup: Wait few seconds before prompt
<p>Using Inno Setup together with an <code>AppMutex</code> works fine - when the setup is started and the mutex still exits, the user is prompted to close this application.</p>

<p>But following question:
Is there a way to tell Inno Setup to wait 2-3 seconds if the program closes itself before showing the user this prompt?</p>

<p>The reason is that I'm running the Inno Setup from the program itself for auto-update purpose. Directly after the setup file is executed the program closes itself, but obviously that takes too long (at least on some systems). So Inno Setup shows this - in this case - useless dialog to the user although the program is closing itself already.</p>

<p>Therefore I would like to accomplish that Inno Setup waits 2-3 seconds and only if the mutex still exists after that time it should show the prompt to the user.</p>

<p>Is there a way to accomplish this?</p>