Hello,

I have a generic dialog that uses an indirect property for a username and I 
would like to enable and disable the Next button depending on whether a 
username has been entered.

MyDialog.wxs
...
<Dialog Id="MyDialog" ...>
    <Control Id="Foo" Type="Edit" ... Property="Dialog.Username" Indirect="yes" 
/>
    <Control Id="Next" Type="PushButton" ...>
        <Condition Action="disable"><![CDATA[Dialog.Username = ""]]></Condition>
        <Condition Action="enable"><![CDATA[Dialog.Username <> ""]]></Condition>
    </Control>
</Dialog>
...

Product.wxs
...
<DialogRef Id="MyDialog" />
<Property Id="SERVICE_USERNAME" Hidden="yes" />
<Property Id="Dialog.Username" Value="SERVICE_USERNAME" />
...

With this code the button is always enabled, I assume because I need to 
dereference the Dialog.Username property somehow in the Condition.  Could 
someone explain how to do this?

#####################################################################################
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy any copies.
#####################################################################################
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to