ntdoc
Posts: 6
Joined: Fri Aug 21, 2009 2:59 am

How do you insert a short delay

I've searched in the program and here on the Website and I see a couple of posts on doing a delay using VBScript however I would rather not rely on WSH to be installed and operational for this to work. Is there any built-in method to insert a short delay at the end of the installation with a custom action so that it waits for like 5 seconds before moving on to another custom action ?

I attempted using the synchronous execute but that did not work correctly for me either.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How do you insert a short delay

Hi,

I have attached a .dll that implements this feature. You can add it as an Attached Custom Action to your project, and set its Action Data field to the number of milliseconds you want it to wait. Simply call the WaitMsecs function located in this .dll.

Regards,
Gabriel
Attachments
WaitMsecs.zip
set the Action Data field of this custom action to the number of milliseconds you want to wait, in your case 5000
(4.33 KiB) Downloaded 261 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ntdoc
Posts: 6
Joined: Fri Aug 21, 2009 2:59 am

Re: How do you insert a short delay

Thank you very much. I'll give that a try.

Return to “Common Problems”