WiX:禁用“下一步”按钮,直到编辑控件包含有效的 GUID

发布于 2024-09-29 03:29:59 字数 127 浏览 1 评论 0原文

使用 WiX,在用户在编辑(文本框)控件中输入格式正确的 GUID 之前,禁用页面上的“下一步”按钮的最简单方法是什么?

我希望答案是“下一步”按钮控件中的“条件”元素,但我无法弄清楚条件是什么。条件是否支持正则表达式匹配?

Using WiX, what's the simplest way to disable the Next button on a page until the user has entered a well-formed GUID in an Edit (textbox) control?

I expect the answer to be Condition elements within the Next button control, but I can't figure out what the conditions would be. Do conditions support regular expression matching?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

几度春秋 2024-10-06 03:29:59

我对此表示怀疑,但您也许可以有一个运行脚本的自定义操作(例如 .vbs 文件,可以找到运行脚本的 CustomAction 示例 此处)将采用该值并检查它是否有效。 VBScript 支持正则表达式(请参阅此处)。然后,该脚本将根据 guid 是否有效将某些属性设置为 true 或 false。然后该属性将在条件中使用。

I doubt it, but you might be able to have a custom action that runs a script (e.g. .vbs file, an example of a CustomAction that runs a script can be found here) which would take that value and check if it's valid. VBScript supports regular expression (see here). That script would then set some property to true or false depending on if the guid is valid. This property would then be used in the condition.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文