Exit dialog issue. - Advanced Installer Community
VishwaPrasad
Posts: 2
Joined: Tue Sep 09, 2014 7:07 am

Exit dialog issue.

Hi,

I am trying to execute the vb script program the file during end of installation. This Vb script calls the batch file.

I have added the scripts programs in Custom Action->Finish Dialog Stage. and set the execution option also.

During this script program execution, When batch file is running, during that Installer Exit Dialog is displaying.

I want, Exit Finish Dialog should display after completion of the batch file execution.

Please help me to resolve this issue.

Thanks
Vishwa
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Exit dialog issue.

Hello Vishwa and welcome to Advanced Installer forums,

The installer will wait for the vbscript custom action (if the Wait for custom action to finish before proceeding option is enabled in the custom action properties), but since your custom action launch a .bat file it will not wait for the .bat file to finish to execute too.

Maybe a sleep function can help you. For example, if you want to wait for 5 seconds you can consider the following code in VBScript:

Code: Select all

sleep1 5 

Sub sleep1(strSeconds) 
       	Dim dteWait : dteWait = DateAdd("s", strSeconds, Now()) 
       	Do Until (Now() > dteWait) 
       	Loop 
End Sub
You can take a look on the Using Black Surface theme on startup as a Splash screen forum thread which may be useful to you.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”