Answer

ImportantThis How-To can only be implemented in an Enterprise or Architect project.

Some fields in your installation package's dialogs may need to be filled in order to run the install successfully. You can make sure the end-user will fill a field by using a small custom action and the property of the field.

For an edit box control which has the property MY_EDIT, you can follow these steps:

  • go to the Dialogs page and create a custom dialog (or modify an existing one)
  • on the custom dialog, create an edit box control
  • while the edit box is selected, set the Property Name field in the Properties pane to MY_EDIT
  • go to the Custom Actions page
  • under UI Custom Actions create a new ScriptInline custom action
  • set the Script Text field to something like this:
MsgBox "This field cannot be empty. Please input a value"
  • go to the "Dialogs" page and select the Next button on your custom dialog
  • go to the Published Events tab in the "Control" section
  • double click the NewDialog control event
  • set its condition to MY_EDIT (the control event will only run if the "MY_EDIT" property is not empty)
  • create a DoAction control event which looks like this:
DoAction       ScriptInline       NOT MY_EDIT

Note"ScriptInline" from the above DoAction control event represents the UI custom action which shows the custom message box.

NoteThe NOT MY_EDIT condition for the "DoAction" control event will condition the message box custom action to only run if the edit box's property is empty.