How can I show SpawnWaitDialog during the custom action exec - Advanced Installer Community
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

How can I show SpawnWaitDialog during the custom action exec

Hi guys,
I have question about show SpawnWaitDialog. In my case, when click "Next" button, the Published Event as below:
1. Set "WAIT" = 1
2. Execute custom action: "System_Check" as async sequence.
3. Display a specify child dialog with condition: SpawnWaitDialog, condition: WAIT = 0
4. ...
The problem is that the #3 always showed after #2 custom action finished. I want to execute this custom action "System_Check", and show SpawnWaitDialog at same time as the "System_Check" may take long time, and I want to let user know that we have doing something in background. After action "System_Check" finished, it will set the property "WAIT" = 0, then SpawnWaitDialog will close and I can going to next screen.
I have reference this topic: http://www.advancedinstaller.com/forums ... =2&t=16871 but it doesn't work for me.
Any idea? Thanks a lot!
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

Re: How can I show SpawnWaitDialog during the custom action

I'm also did another test, in Published Event, I add two custom action, one is execute function A, another execute function B. (both A and B are vbscript based function)
I found that the actions always executed by sequence (execute A at first, after A return, then execute B), even if I unchecked "waiting for custom action to finish before proceeding" and "wait for return code at the end of the sequence" for A and B.
Does the Published Event always execute the actions by sequence?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I show SpawnWaitDialog during the custom action

Hi,

I investigated the problem and it seems to be an Windows Installer issue. It appear only when running an asynchronous VBScript custom action which, as you mentioned, does not get to the next step until the custom action is not finished.

However, the EXE and the DLL custom actions works as expected. So, I think, a solution for you would be to use an EXE or a DLL custom action instead.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
xjluogang
Posts: 20
Joined: Sun Apr 14, 2013 3:24 pm

Re: How can I show SpawnWaitDialog during the custom action

ok, I'll try other solutions to see whether it's can work or not.
Many thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How can I show SpawnWaitDialog during the custom action

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”