Regex 是否可以使用WiX中的正则表达式验证文本字段?

Regex 是否可以使用WiX中的正则表达式验证文本字段?,regex,installation,wix,windows-installer,Regex,Installation,Wix,Windows Installer,我已将自定义对话框“StandardUI.wxs”添加到我的安装文件中。它有一个文本字段密钥 <Control Id="PasskeyLabel" Type="Text" X="18" Y="139" Width="342" Height="12" Text="Passkey *" TabSkip="no" /> <Control Id="PasskeyEdit" Type="Edit" Password="yes" X="18" Y="151" Width=

我已将自定义对话框“StandardUI.wxs”添加到我的安装文件中。它有一个文本字段密钥

   <Control Id="PasskeyLabel" Type="Text" X="18" Y="139" Width="342" Height="12" Text="Passkey *" TabSkip="no" />

    <Control Id="PasskeyEdit" Type="Edit" Password="yes"  X="18" Y="151" Width="150" Height="18" Property="USERACCPASSKEY" Text="[User]" TabSkip="no" Sunken="yes" Indirect="no" />
    <Control Id="PasskeyLabel2" Type="Text" X="18" Y="174" Width="342" Height="12"  Text="{\Red}* Passkey should be at least 8 characters long, and contain at least one non-alphanumeric character" TabSkip="no" />


是否可以使用正则表达式字符串验证密钥?

我最终能够使用以下链接完成此操作