On 12/01/2011 15:14, Thom Leigh wrote: > This type of thing has been asked about before and as far as I > understand it is not possible - due to limitations in Windows Installer > itself, not WIX. > > Instead, consider always having Next enabled, and then when the user > clicks Next, display an error message if either textbox is empty. > > Would this be implemented with <Condition ... /> or <Publish Event="SpawnDialog" ... /> like CancelButton ?
> > -----Original Message----- > From: Leonidas Spyropoulos [mailto:leonidas.spyropou...@formicary.net] > Sent: 12 January 2011 14:53 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Condition check and Next Button > > Hey all, > > I think I am stuck on a feature / bug of WIX. > > In a Dialog while installing I ask the user for username/password. > The Next button is disabled until these two properties are set. > > But the thing is that these Properties are only Set after the user > "leave" the EditBox. So the only way to Enable "Next" button is to press > tab. > > Is it a way to Enable Next Conditions with a keystoke? > > Here is how I defined the Conditions: > > <Control Type="Edit" Id="OCSUserIdBox" Width="90" Height="17" X="75" > Y="193" Disabled="yes" Property="OCSUserIdBox" /> <Control Type="Edit" > Id="OCSPasswordBox" Width="90" Height="17" X="245" > Y="193" Property="OCSPasswordBox" Password="yes" /> > > <Control Type="PushButton" Id="Next" Width="56" Height="17" X="236" > Y="243" Default="no" Text="!(loc.WixUINext)" Disabled="yes"> > <Condition Action ="disable"><![CDATA[NOT (OCSUserIdBox AND > OCSPasswordBox)]]></Condition> > <Condition Action ="enable"><![CDATA[OCSUserIdBox AND > OCSPasswordBox]]></Condition> </Control> > > -- > Leonidas Spyropoulos > Formicary - delivering quality financial technology solutions > www.formicary.net o : +44 (0)20 7920 7100 > > ------------------------------------------------------------------------ > ---- > This message is confidential and may be privileged. It is intended > solely for the named addressee. If you are not the intended recipient, > please inform us. > Any unauthorised dissemination, distribution or copying hereof is > prohibited. > > Formicary Limited registered office in England and Wales, address 1 > Taillar Road, Hedon, East Yorkshire HU12 8GU, registration number > 3894343, VAT number 747644304, does not guarantee that the integrity of > this communication has been maintained nor that this communication is > free of viruses, interceptions or interference. > ------------------------------------------------------------------------ > ---- > > ------------------------------------------------------------------------ > ------ > 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 -- Leonidas Spyropoulos Formicary - delivering quality financial technology solutions www.formicary.net o : +44 (0)20 7920 7100 ---------------------------------------------------------------------------- This message is confidential and may be privileged. It is intended solely for the named addressee. If you are not the intended recipient, please inform us. Any unauthorised dissemination, distribution or copying hereof is prohibited. Formicary Limited registered office in England and Wales, address 1 Taillar Road, Hedon, East Yorkshire HU12 8GU, registration number 3894343, VAT number 747644304, does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. ---------------------------------------------------------------------------- ------------------------------------------------------------------------------ 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