문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top