Take a look at code similar to this (this may or may not come through):

      <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" 
Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" 
Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND 
WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
      <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" 
Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR 
WIXUI_INSTALLDIR_VALID="1"</Publish>

1) The DoAction attribute causes the WixUIValidatePath custom action to be 
called (the validation can be suppressed by defining the WIXUI_DONTVALIDATEPATH 
property;

2) WixUIValidatePath sets a property, WIXUI_INSTALLDIR_VALID;

3) If the path is not valid, InvalidDirDlg is displayed;

4) If the path is valid, the next dialog in sequence, VerifyReadyDlg, is 
displayed;

--
John Merryweather Cooper
Senior Software Engineer | Enterprise Service Applications | Continuing 
Development
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com


-----Original Message-----
From: Brian Enderle [mailto:bria...@gmail.com] 
Sent: Wednesday, October 22, 2014 9:45 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Return to Dialog Screen on Custom Action Error

In looking at InstallDirDlg I don't see anything that would return control to 
the dialog on an error.  I am not sure what support code to look at.
Can you tell me what I should look at?



Brian

If you can't explain it simply, you don't understand it well enough.  - Albert 
Einstein

On Wed, Oct 22, 2014 at 9:23 AM, John Cooper <jocoo...@jackhenry.com> wrote:

> It is done in the default InstallDirDlg and support code.  Take a look 
> at that code in the Wix source.  That pattern can be used to chain-in 
> whatever custom actions you need for validation.  It's kludgy, but 
> that is dictated by the way the Windows Installer Service implement UI 
> elements.
>
> --
> John Merryweather Cooper
> Senior Software Engineer | Enterprise Service Applications | 
> Continuing Development Jack Henry & Associates, Inc.® | Lenexa, KS  
> 66214 | Ext:  431050 | jocoo...@jackhenry.com
>
>
>
> -----Original Message-----
> From: Brian Enderle [mailto:bria...@gmail.com]
> Sent: Wednesday, October 22, 2014 8:18 AM
> To: WiX Users
> Subject: [WiX-users] Return to Dialog Screen on Custom Action Error
>
> I have a Custom Action that checks that a directory path entered by 
> the user is valid.  I would like to return to the setup screen which 
> contains the 'Directory Path' edit box if the path is invalid 
> (ActionResult.Failure).  Can this be done?
>
>
> Brian
>
> If you can't explain it simply, you don't understand it well enough.  
> - Albert Einstein
>
> ----------------------------------------------------------------------
> -------- Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> NOTICE: This electronic mail message and any files transmitted with it 
> are intended exclusively for the individual or entity to which it is 
> addressed. The message, together with any attachment, may contain 
> confidential and/or privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure or 
> distribution is strictly prohibited. If you have received this message 
> in error, please immediately advise the sender by reply email and 
> delete all copies.
>
>
>
> ----------------------------------------------------------------------
> -------- Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to