Re: [WiX-users] Controls with Conditions

2009-03-11 Thread Don Benson
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  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


Re: [WiX-users] Controls with Conditions

2009-03-11 Thread Bob Arnson
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


Re: [WiX-users] Controls with Conditions

2009-03-11 Thread Andy2k8

Hi there

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 ??

thanks
Andy


Bob Arnson-3 wrote:
> 
> Michael Cline wrote:
>> Is there any way to update the property with every key press?
>>   
> No. Unfortunately, MSI only updates properties on focus change.
> 
> -- 
> sig://boB
> http://bobs.org
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 


-
Andy
MSI Developer
Schneider Electric:working:
-- 
View this message in context: 
http://n2.nabble.com/Controls-with-Conditions-tp693289p2460106.html
Sent from the wix-users mailing list archive at Nabble.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


Re: [WiX-users] Controls with Conditions

2006-07-29 Thread Dana Gutride
Michael:From what I've seen, the value of the Property doesn't update until the control loses focus.  If you have other textboxes on that dialog, you could try putting those after the database textbox so the user has to tab to those first.  Otherwise, you could use a maskededit control (see below for a sample and a good link) or as a last resort create a custom action that checks the value of the database property.


Take a look at this link for more information: 
http://msdn.microsoft.com/library/default.asp?url="">DanaOn 7/27/06, Michael Cline
 <
[EMAIL PROTECTED]> wrote:I'm assuming that this is a lack of understanding on my part and is more of
an MSI question than Wix itself.I have a dialog which requires you to enter the Database Name before you canclick on Next.  I have a condition on the Next Button that makes sure theDatabase Name is entered.
Text="!(loc.WixUINext)">  Value="[WixUI_DatabaseSetupDlg_Next]">1   OR
   ""]]> AND
This works fine but requires the user to tab out of the field before it isenabled.  Since the installer may just type in the box and want to click onthe Next button it is not enabled.  The property doesn't get set until the
text field is exited.Is there any way to update the property with every key press?Should I handle this in a message from the next saying 'Please enter adatabase'?Thanks,_
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___WiX-users mailing listWiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Controls with Conditions

2006-07-29 Thread Bob Arnson
Michael Cline wrote:
> Is there any way to update the property with every key press?
>   
No. Unfortunately, MSI only updates properties on focus change.

-- 
sig://boB
http://bobs.org


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users