This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Asynchronous Custom Action / SpawnWaitDialog
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 26, 2008
04:24 AM
Asynchronous Custom Action / SpawnWaitDialog
Dear all!
I'm trying to implement a Wait Dialog in my BASIC MSI project. The dialog should be displayed when the user clicks on a certain button.
As I've already figured out i need to use SpawnWaitDialog.
So here's what I did:
1. Created a "WaitDialog".
2. Created an InstallScript CustomAction "DoSomeStuff":
I noticed somewhere in this forum that this Immediate CustomAction needs to be run asynchronously so I chose "Asynchronous (Waits for exit code)" as Asynchronous (No wait for completion) does not seem to be available for InstallScript CustomActions.
3. Created a Button on an existing dialog and added the following events:
DoAction--DoSomeStuff--1
SpawnWaitDialog--WaitDialog--ActionFinished="X"
Now here's what I don't get: The WaitDialog appears correctly but does not disappear anymore. I did some tests without the WaitDialog and as I figured out the CustomAction is NOT beeing started... Funnily enough the CustomActions seems to be called if I click on the Cancel button of the installer (!).
If anybody has already tried to implement such a Wait Dialog with InstallScript and Basic MSI I'd really appreciate his help!
Michael
I'm trying to implement a Wait Dialog in my BASIC MSI project. The dialog should be displayed when the user clicks on a certain button.
As I've already figured out i need to use SpawnWaitDialog.
So here's what I did:
1. Created a "WaitDialog".
2. Created an InstallScript CustomAction "DoSomeStuff":
Delay(3);
MsiSetProperty(hMsi, "ActionFinished", "X");
return ERROR_SUCCESS;
I noticed somewhere in this forum that this Immediate CustomAction needs to be run asynchronously so I chose "Asynchronous (Waits for exit code)" as Asynchronous (No wait for completion) does not seem to be available for InstallScript CustomActions.
3. Created a Button on an existing dialog and added the following events:
DoAction--DoSomeStuff--1
SpawnWaitDialog--WaitDialog--ActionFinished="X"
Now here's what I don't get: The WaitDialog appears correctly but does not disappear anymore. I did some tests without the WaitDialog and as I figured out the CustomAction is NOT beeing started... Funnily enough the CustomActions seems to be called if I click on the Cancel button of the installer (!).
If anybody has already tried to implement such a Wait Dialog with InstallScript and Basic MSI I'd really appreciate his help!
Michael
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 30, 2008
09:49 AM
I'd really appreciate your help!!
Michael
Michael
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)