We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Web Installer Bootstrapper - calculate DL link

We have an existing hand-coded bootstrapper which downloads the latest MSI for which the user's maintenance plan is licensed (if no existing license if found it also prompts the user for their license information); looking to do something similar with Advanced Installer if I can. Is there any way to customize the bootstrapper at all (dialogs, custom actions), or is it back to .NET for our purposes?

Thank you,

- Adam
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Web Installer Bootstrapper - calculate DL link

Hello Adam,

We don't have predefined support for your scenario, but you can try to create your own dialog where the user could enter its license info. The license info will be collected in installer properties. Then, you can build your own custom action which will receive as arguments the installer properties containing the license info, will compute the URL of the MSI and save it into an installer property (e.g. MSI_URL). Finally you should add a URL feature-based prerequisite having set in the "URL" field from "Prerequisite Setup File" tab the formatted reference of the "MSI_URL" property like this:

Code: Select all

[MSI_URL]
Let us know if this helped, otherwise please give us more details about your scenario (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Web Installer Bootstrapper - calculate DL link

The bootstrapper needs to check for an existing license, if it doesn't find one display the licensing dialog, then check the maintenance expiry date and download the correct MSI, then execute the MSI.

I'm already doing the licensing checks etc. in the MSI portion of the installation, but it has to be done in the bootstrapper as well (we'll be providing the .exe for end users and .msi for enterprises, separate Advanced Installer Projects) and I don't seem to be able to add any dialogs to the bootstrapper. I have an Enterprise license, would this require Architect?

Thanks again, the support provided by you and your team is fantastic!

- Adam
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Web Installer Bootstrapper - calculate DL link

Hello Adam,

All the MSI dialogs are displayed by the EXE bootstrapper too. The EXE boostrapper is just a wrapper over the MSI. Have you tested the EXE setup and it doesn't display the dialogs from "Dialogs" page?

Can you please give us more details about the behavior you are encountering (maybe exemplify) so we can have a better picture of your installation scenario?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adamdc78
Posts: 76
Joined: Wed Mar 19, 2014 7:42 pm

Re: Web Installer Bootstrapper - calculate DL link

The web downloader bootstrapper will download and run an MSI. I need to determine which MSi to download before downloading it. Setting the property once it is downloaded does me no good as it may already be running an MSI for which the user is not licensed.

It sounds as though we'll have to continue using our own bootstrapper.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Web Installer Bootstrapper - calculate DL link

Hello Adam,

I'm afraid we don't have support to set at install time the download URL for an EXE "Web installer" package type. The only workaround you can use is by adding your MSI installer as a URL feature-based prerequisite to a wrapper installation project. Then, you should use some custom actions in the wrapper project which will search for existing license, display a license info dialog (if required), compute the prerequisite MSI URL and save it into an installer property which will be used in the "URL" field from "Prerequisite Setup File" tab.

If you have any further questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”