pcoveney
Posts: 4
Joined: Wed Sep 16, 2020 6:33 pm

Advice on displaying text file during pre-install

Our software deploys a version of ironPython as part of its installation. We have a text file that contains the Apache license, whose contents are displayed when the user clicks a button in our desktop app. Recently, my company acquired new lawyers, who have advised us that we should display this license as part of the installer, and get the user to agree to it before continuing the installation.

What I think I am going to do is: create a custom dialog, set its text to the file I've just described, add Accept and Cancel buttons, invoke the dialog during pre-install, and cancel the install if the Cancel button is clicked. Our build system is a system of PowerShell scripts that do the various things required, including invoking Advanced Installer to create the MSI. This script would be modified to update the variable in the .AIP project file where the text is stored; this way, any update to the file would be reflected in the installer. (We already munge the .AIP file to roll the version number.)

So, very high-level description, but that's how I'm going to attack it.

Unless someone has a better idea: that's what I'm here for, to if there's a better alternative before I undertake this task.

Any thoughts? Thanks in advance.
Phil C
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Advice on displaying text file during pre-install

Hello Phil,

Isn't the EULA dialog (LicenseAgreementDlg) what you're aiming for?

It allows you to display your license agreement from a file and even enforce its reading. The Next button is enabled when "I accept the terms.." option is selected.
eula dlg.png
eula dlg.png (63.43 KiB) Viewed 4585 times

You can find more details on the articles below:

1. You can also send us any confirmation email you have from the previous order.p

2. How do I enforce the EULA lecture on "LicenseAgreementDlg" dialog?

Hope this helps! Let us know if you have any questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”