Anyone have any idea on how to get SpawnWaitDialog to work? I have tried 
various ways without success. (Calling the custom action as check and 
asyncWait) Setting various options on the dialog SystemModal, Modeless, 
KeepModeless as well. 
Calling DoAction before SpawnWaitDialog as well as after. 

>From what I can tell if I run the custom action synchronously 
        Calling the CA first then calling SpawnWaitDialog the custom action 
does not run until after I manually close the dialog. 
        If I run the custom action first then the dialog never displays.
If I run the custom action asynchronously 
        Calling the CA first then calling SpawnWaitDialog the custom action 
does not run until after I manually close the dialog. 
        If I run the custom action first then the dialog I have to manually 
close the dialog.    

I am running out of ideas.


-----Original Message-----
From: Tom Crozier [mailto:tcroz...@rackwise.com] 
Sent: Friday, October 30, 2009 9:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] UI Display question

Thanks for the reply Bob, but I have tried using the SpawnWaitDialog control 
without success. What am I missing?

I have attempted the following:

        I set the initial value of a property that my DTF custom action sets 
(it sets the property to either 1 or 0).
        Call the SpawnWaitDialog (The dialog just has a Text control to display 
Validating - Please wait...)
        Then call the custom action
        Display a failed dialog if not successful
        Otherwise go on to the next screen

Code:
        Inside my Next Button control I do the following:

        <Publish Property="DATA_VALID"  Value="2">1</Publish>
        <Publish Event="SpawnWaitDialog" 
Value="ValidatingDialog"><![CDATA[DATA_VALID <> 2]]></Publish>
        <Publish Event="DoAction" Value="ValidateDataImmediate">1</Publish>
        <Publish Event="SpawnDialog" 
Value="ValidationFailed"><![CDATA[DATA_VALID = 0]]></Publish>
        <Publish Event="NewDialog" Value="[DataDlg_Next]"><![CDATA[DATA_VALID = 
1]]></Publish>

Results:
        The Validating dialog is displayed forever.

- I added a button on the validation dialog to publish "EndDialog" and when I 
press it, the dialog goes away and starts running the custom action. So the 
action is not getting run while the dialog is up.

- If I add the Modeless="yes" and KeepModeless="yes" properties on the 
validating dialog it pops up and goes away immediately. Other combinations of 
attributes do not see to make a difference.

- I attempted to move the DoAction to invoke the custom action inside of the 
validating dialog. But adding a publish event under a Text control does not 
seem to get invoked when the dialog is displayed.

Thanks for your help

- Tom




-----Original Message-----
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Thursday, October 29, 2009 7:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] UI Display question

Tom Crozier wrote:
>                 In my installer I validate data on a dialog by performing a 
> DoAction event (calling a custom action) on a next button press. It can take 
> a minute or more to validate so I need to either display a popup dialog 
> saying "Validating - Please wait..." or display the text on top of the 
> current dialog. Then when the action finishes remove the dialog or text and 
> proceed to the next dialog.
>   

Use a SpawnWaitDialog control event before your CA.

-- 
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.423 / Virus Database: 270.14.24/2449 - Release Date: 10/29/09 
07:38:00

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.423 / Virus Database: 270.14.24/2449 - Release Date: 10/30/09 
07:52:00

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to