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 开发者_如何学Gowould be. Do conditions support regular expression matching?
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.
精彩评论