Hi all, As a part of my installation, I give the user the option to create a new website. For this, I have a control in which the user can specify the new website port.
Using a "MaskedEdit" type control, I was able to limit this field to 5 numeric characters, but found out that this has a couple of disadvantages: First, I can't detect if this field is empty (it gets a value of ' ' instead of not exist), and I really need to do that in order to show a proper warning message. Second, I can't seem to be able to test that the port number is < 65536. So, as a result, I made the control an "Edit" type one, with Text="{5}", instead of "MaskedEdit", but now I have 2 problems: First, if I set this control to Integer="yes", if the user enters non-numeric characters he gets an ugly "internal error" message from the MSI upon pressing "next", which I can't seem to avoid or change. If I change to Integer="no" I completely lose control over it (it is read as a string and I can't ask mathematical questions on it). Second, I still can't seem to be able to validate that port number < 65536. This is how the control is defined: <Control Id="NewPortEdit" Type="Edit" X="225" Y="106" Width="30" Height="15" Hidden="yes" Integer="yes" Property="NEW_WEBSITE_PORT" \> And this is an action attached to pressing the "next" button, with a condition that is never true, somehow: <Publish Event="SpawnDialog" Value="PortErrDlg"> NEW_WEBSITE_PORT>65535</Publish> What is the best way to achieve what I need (being able to prevent the field from being empty, making sure it is numeric, and that it is not greater than 65535) ? ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users