Patrick Steele wrote:
Thanks Levi. Is it even possible then to ensure that one of the variables I wish the user to enter is of type integer? <Control Id="PortEdit" Type="Edit" X="30" Y="145" Width="150" Height="20" Property="MY_PORT" Text="{5}" Integer="yes" /> I would have though something like the above, however if you enter an alphanumberic value in the text field and click elsewhere the installer will crash with error code 2892, and can only be closed from task manager ( wix 3.0.2211 ) :|

2892 says that the value isn't a legal integer. Integer="yes" doesn't restrict input. If you want that, use a MaskedEdit control; see "MaskedEdit Control" for available formatting options.

To answer your other question: MSI doesn't evaluate control conditions on every character entered into an edit control. The "ControlEvent Overview" topic in the MSI SDK covers what controls publish which events. Push buttons and check boxes are the two that are most commonly used.

--
sig://boB
http://bobs.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to