2011/11/17 AxiomaticImpact <[email protected]>:
> Eventually it's going to be specific information. Verifying that the email
> is in a certain format, that the password they enter later meets
> requirements, that kind of thing.
>
Hi Kevin, hi list,
I'm currently doing so with C# custom actions:
The UI executes the CAs on pressing the Next button with Order="1".
The CAs do their work and set properties with the results of their
evaluation.
These properties are then evaluated by the UI with Order="2" to either
open the next dialog or to show a message (box) stating the error.
See this example for a UI:
<Control Id="Next" Type="PushButton" X="236" Y="243"
Width="56" Height="17" Default="yes" Text="!(loc.OTUINext)"
Disabled="yes">
<Condition Action="disable"><![CDATA[USERNAME = ""]]></Condition>
<Condition Action="enable"><![CDATA[USERNAME <> ""]]></Condition>
<Publish Event="DoAction" Value="VerfiyCredentials">1</Publish>
<Publish Event="NewDialog"
Value="[AppPoolUserDlg_Next]"><![CDATA[CREDENTIALS_VALID =
"True"]]></Publish>
<Publish Event="SpawnDialog"
Value="[AppPoolUserDlg_InvalidPassword]"><![CDATA[CREDENTIALS_VALID =
"False"]]></Publish>
</Control>
The CA VerifyCredentials simply sets the CREDENTIALS_VALID property to
either True or False.
Do not fall for not setting it at all; this way a user could pass
CREDENTIALS_VALID=True using command line parameters,
Regards,
Dirk
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users