【发布时间】:2010-07-05 06:44:49
【问题描述】:
我需要我的安装程序接受密码,因此我创建了一个对话框,提示用户输入密码两次(以避免错误),但是我在获取“您的密码不”时遇到了一些问题t match”标签在正确的时间出现和消失。
这是我目前所拥有的:
<Control Id="Password" Type="Edit" Property="VDIR_PASSWORD" Password="yes" />
<Control Id="ConfirmPassword" Type="Edit" Property="ConfirmPassword" Password="yes" />
<Control Id="PasswordMismatchLabel" Type="Text" Text="Passwords do not match.">
<Condition Action="hide">VDIR_PASSWORD = ConfirmPassword</Condition>
</Control>
这会编译,但是标签永远不会显示。 (如果我反转条件,则标签会显示,但如果它们不匹配则不会消失)。
我可以看到我缺少的东西是订阅一些事件,每当发生某些事情时更新标签(例如,用户按下一个键,或者焦点从任何一个控件中丢失),但是我不能查找有关我如何实现此目的的任何文档或示例。
可以这样做吗?
【问题讨论】:
标签: wix conditional-statements