当我在MSI对话框中的单选按钮之间切换时如何重设编辑字段

问题描述

我对wix工具集和Windows安装程序非常陌生,并且如下所示为我的MSI设计了自定义对话框。

enter image description here

我有两个单选按钮A和B,两个单选按钮都与相同的编辑字段相关联,如果我选择第一个单选按钮并在用户名和密码字段中输入一些数据,然后决定切换到第二个单选按钮,我想用户名和密码字段可以重置为空白吗?

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> 
            

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)