davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Download Large Files only on request

I have an installer that has various pre-requisites , which is all fine, but I would like to give the installer the choice of installing a choice from a variety of sql databases. I have already successfully included a sql server .bak file and restored this single item.

How can i ONLY download a Db that the user selects form a list in the UI and install that, rather than include all of the Db's in my installer ?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download Large Files only on request

Hi,

In order to achieve this, you can add the prerequisites using the "URL Prerequisite" toolbar button. In this case only the prerequisites selected by the user will be downloaded from the specified URLs and installed.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Re: Download Large Files only on request

Thanks for the reply.

The large files I wish to download are not exececutables to install, but Database bakup files. would i need to create 'installers' that simply place these files into the install folder of my 'main' installer ?

I would like the 'choice' to be handled by the UI not the pre-requisite dialog. As I don't want the user to ONLY download the choosen single Db at actual install time.

Is there any way to achieve this ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download Large Files only on request

Hi,
The large files I wish to download are not exececutables to install, but Database bakup files. would i need to create 'installers' that simply place these files into the install folder of my 'main' installer ?
Indeed, you can create a simple MSI package that only place these files in the install folder or you can create your own custom action that downloads those files from an URL and places them in the install folder.
I would like the 'choice' to be handled by the UI not the pre-requisite dialog. As I don't want the user to ONLY download the choosen single Db at actual install time.
To achieve this, you can use the following approach:
- add a checkbox on one of your dialogs
- add the simple MSI package as a "feature-based" or "post-install" prerequisite OR the custom action mentioned above in the Custom Action page
- if you use the prerequisite support, go in the Organization page and select the feature related to your prerequisite
- select the "Not Displayed" option from the "Feature Tree" combobox
- select the "Not Installed" radio button, then click the "Add Install-time Conditions" link and in the "Installed If" field write the property related to the checkbox mentioned above (in this case the prerequisite will be installed only if the checkbox is checked)
- if you use the custom action, just set the checkbox property as a condition for it
- build and run the project

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Re: Download Large Files only on request

Will try this and let you know, thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Download Large Files only on request

You're welcome. Just let us know if any problem appears.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”