How to configure the EULA for the setup

This How-To explains how to add the EULA showed to the user during the installation.

1. Add license agreement dialog to the setup

To add the EULA to the setup, you can follow these steps:

  • Go to the Dialogs page.
  • Select the "WelcomeDlg" from the First Time Install dialogs sequence.
  • Use the Add Dialog toolbar button and select the "LicenseAgreementDlg" from the Buit-in tab.

The wizard will assist you to add the EULA dialog to the installation package.

2. Add license agreement dialog to the Boostrapper

If the setup contains Pre-install prerequisites, these prerequisites will be displayed by the boostrapper before the MSI. To display the EULA in the bootstrapper, please follow these steps:

  • Go to the Dialogs page.
  • Expand the Pre-Install UI dialogs from the EXE Bootstrapper section.
  • Select the WelcomePrereqDlg and use the Add Dialog toolbar button and select the "LicenseAgreementDlg" from the Buit-in tab.

This option allows you to display an EULA page in the prerequisite wizard. Select the RTF license agreement file in the “EULA Path (.rtf)” field.

ImportantLicense Agreement dialog from the bootstrapper is shown only when at least one global prerequisite was scheduled for installation.

3. Show mutually exclusive EULA dialog in Boostrapper or MSI

Since the license agreement from the bootstrapper will only by displayed if at least a Pre-install prerequisite is scheduled for installation, you may want to display the license agreement when the MSI starts. To avoid displaying the EULA dialog in the MSI, if it was already shown in the boostrapper, you need to conditionally display it through a Show only if... condition.

To achive this, you can follow this steps:

  • Select the "LicenseAgreementDlg" from the First Time Install sequence of the MSI Package.
  • Use the "Show only if..." option from its context menu.
  • In the "Expression" field from the Edit Condition Dialog write NOT AI_MISSING_PREREQS.

ImportantThe AI_MISSING_PREREQS property will only be set if at least one of the Pre-install prerequisites was scheduled for installation, otherwise the property is empty.

Below there is a short video with the above steps.