Displaying a License Agreement

To comply with legal requirements, most software products include a license agreement. Typically, the license agreement is displayed prior to or in the early stages of the installation process. InstallMate's Setup wizard will do this for your product through the predefined LicenseDlg dialog box (defined on the InstallMate Dialogs project page) if desired, and will only continue with the installation process if the customer indicates that he accepts the terms and conditions of the license agreement.

The license agreement text itself is defined through one or more RichText resources on the RichTexts project page.

Note - If you want the license agreement text to be available after installation, you should also provide it as a separate document, which you install along with the rest of your application. In that case, it might be a good idea to install a shortcut to that document. See Installing Files and Installing Shortcuts for more information on these topics.

The predefined LicenseDlg dialog box uses a RichText control to display the information. You can create additional dialog boxes with similar controls if you need to display other pre- or post-installation texts.

How to include a license agreement in your project

To include a license agreement for acceptance prior to installation, act as follows.

  1. Go to the Installer options project page and check the Include License page box.
  2. Go to the RichTexts project page and select the License1 resource.
  3. Enter the desired text into the main text field, or copy and paste from a word processor.

This will the license text in a single language to your installer.

If you want to localize the license text for different languages, then take the following additional steps.

  1. Create or import additional RichText resources on the RichTexts project page. Give them easy to recognize names, for example License_EN, License_FR, etc.
  2. Go to the Dialogs project page.
  3. Select the predefined LicenseDlg dialog box in the Dialogs tree.
  4. Click on the large text control in the dialog box preview. This displays the RichText attributes for the MainText control.
  5. Make sure that the RTF name field is localized (the * button must appear pressed in).
  6. Select the desired language in the main toolbar. If necessary, add new localization languages first.
  7. Enter the desired RichText resource name for this language in the RTF name field (for example, if the current language in the main toolbar is French, then enter License_FR or whatever you called the French license text).
  8. Repeat steps 9-10 for the remaining languages.

Also see Working with localizable attributes.