1
我已將自定義對話框「StandardUI.wxs」添加到我的安裝文件中。它有一個文本字段密碼。是否可以使用正則表達式在WiX中驗證文本字段?
<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" />
是否可以使用正則表達式字符串驗證密碼?