Yea, sorry, that's true, isn't it. Sorry, I validate (including calling DoAction to call CAs that assist in my validations) and then SpawnDialog to report/or-otherwise-deal-with errors or NewDialog to move on, depending on the results of my validation. I hadn't tried a warning.
-----Original Message----- From: Matt Johnson [mailto:ma...@timeamerica.com] Sent: Wednesday, January 19, 2011 7:32 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to continue on close of modal popup? That's what I originally thought, but after closing the warning popup, execution of the original action set does not continue. In other words, I can't do this: <Control Id="Next" Type="PushButton" .... > <Publish Event "SpawnDialog" Value="WarningPopup" Order="1">1</Publish> <Publish Event "NewDialog" Value="NextDialog" Order="2" >1</Publish> </Control> Because the SpawnDialog stops the execution of the sequence. For now, I've compromised by having the warning text specifically tell the user they will have to click Next again to continue. I set a property to indicate that the warning was shown, so I can use that property in a condition to check whether to show it again or continue to the next dialog. It's a bit awkward though - I'd rather just close the popup and take them to the next dialog myself. What would make sense would be something in the popup like <Control Id="OK" Type="PushButton" .... > <Publish Event "EndDialog" Value="ReturnAndContinue">1</Publish> </Control> Then the original sequence could continue as above. But alas, there doesn't appear to be anything like ReturnAndContinue in the EndDialog event. I guess this is more of an MSI issue - I was just hoping there was some clean workaround I could do in Wix or a CA. Thanks, Matt -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Tuesday, January 18, 2011 9:56 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] How to continue on close of modal popup? In the set of actions that SpawnDialog is a part of, continue with further actions that either end there or move onto the next dialog (based on the value of the property you set in the warning dialog). -----Original Message----- From: Matt Johnson [mailto:ma...@timeamerica.com] Sent: Monday, January 17, 2011 3:39 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to continue on close of modal popup? I have a UI dialog that I want to present a "warning" popup when a field is blank. The dialog is launched with SpawnDialog and says something like "Do you really want the field empty?" There are two buttons labeled "Yes" and "No". If the user picks "No", it's easy enough to close the popup and return to the parent dialog with the usual "EndDialog" event and "Return" value. However, I can't seem to find a clean way to close the popup and still move to the next dialog. There doesn't appear to be any other value I can pass to EndDialog that would do this. I came up with a solution that kinda works. Instead of using SpawnDialog, I use SpawnWaitDialog. Then in the popup, I set a property when the user clicks either button. This property is the trigger condition for the wait dialog. The approach works, except that the cursor changes to the wait icon (spinning circle or hourglass) - which makes it unclear to the user that they need to press a button. Is there any way to change the cursor manually? Perhaps in a custom action? Is there a better approach to this? Thanks, Matt ---------------------------------------------------------------------------- -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users