I have never liked the behavior of enabling/disabline push buttons. Instead of disabling/enabling the control, you might consider publishing multiple events for the push button. You can control the order of the events, which allows you to do validation with three events.
The first event runs a custom action to evaluate the restriction that you want to place and sets a property. For example, the custom action might evaluate the INSTALLDIR property and set the INSTALLDIR_VALID to 1 when it is valid, and 0 when it is not. The second event is a SpawnDialog action. Apply a condition to the event: INSTALLDIR_VALID<>1. You will need an error dialog to explain why the value is not valid. The third event is the action you want when the directory is valid. It should be conditioned with INSTALLDIR_VALID=1. With this technique, the push button is always enabled. - Don Benson - On Wed, Mar 11, 2009 at 1:22 PM, Bob Arnson <b...@joyofsetup.com> wrote: > Andy2k8 wrote: > > I have added a condition that disables the "Next" button on the > installdir > > dialog if the dest path is windows root drive.It works fine with next > button > > click.But if the user press "Enter" without changing the pathEdit focus, > the > > condition doesn't get evaluated and the UI get navigated to the next > > screen.How do i fix this? is there any way I can change the way it > responds > > to "enter" key press ?? > > > > Enter triggers the default button. I'm not aware of a way to force MSI > to evaluate control conditions without moving focus between controls. > > -- > sig://boB > http://joyofsetup.com/ > > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users