Wix 在MSI对话框中切换单选按钮时如何重置编辑字段
我是wix工具集和windows安装程序的新手,我为我的MSI设计了自定义对话框,如下所示 我有两个单选按钮A和B,两个单选按钮都与相同的编辑字段相关联,如果我选择第一个单选按钮并在用户名和密码字段中输入一些数据,然后决定切换到第二个单选按钮,我希望我的用户名和密码字段重置为空白,是否可能Wix 在MSI对话框中切换单选按钮时如何重置编辑字段,wix,windows-installer,wix3.5,wix3.7,wix3.10,Wix,Windows Installer,Wix3.5,Wix3.7,Wix3.10,我是wix工具集和windows安装程序的新手,我为我的MSI设计了自定义对话框,如下所示 我有两个单选按钮A和B,两个单选按钮都与相同的编辑字段相关联,如果我选择第一个单选按钮并在用户名和密码字段中输入一些数据,然后决定切换到第二个单选按钮,我希望我的用户名和密码字段重置为空白,是否可能 code: <Control Id="PathLabel_UName" Type="Text" X="15" Y="115&q
code:
<Control Id="PathLabel_UName" Type="Text" X="15" Y="115" Width="80" Height="20" Text="!(loc.***)" />
<Control Id="PathLabel_UName" Type="Text" X="15" Y="165" Width="80" Height="20" Text="***" />
<Control Id="PathLabel_PWord" Type="Text" X="15" Y="140" Width="80" Height="20" Text="!(loc.***)" >
</Control>
<Control Id="PathEdit_PWord" Type="Edit" X="65" Y="140" Width="110" Height="20" Password="yes" Property="****" >
</Control>
<Control Id="PathLabel_Uname" Type="Edit" X="65" Y="165" Width="110" Height="20" Property="*****" >
</Control>
<Control Id="InstallTypeRadio" Property="A1" Type="RadioButtonGroup" X="5" Y="45" Height="60" Width="290" />
<Control Id="Icon" Type="Icon" X="15" Y="210" Width="10" Height="12" Text="InfoIcon" IconSize="16" FixedSize="yes" Disabled="yes">
</Control>
<RadioButtonGroup Property="SA">
<RadioButton Value="1" X="5" Y="35" Height="12" Width="90" Text="!(loc.***)" />
<RadioButton Value="2" X="100" Y="35" Height="12" Width="90" Text="!(loc.***)" />
</RadioButtonGroup>
代码: