Download prerequisite, but not run it? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Download prerequisite, but not run it?

Hello,

Is there a way to make the prerequisite download the setup file but not run it please?

:?:
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Download prerequisite, but not run it?

Hello,

You can do this by creating a new file download in your project. The steps for doing this are the following:

1. Go to Files and Folders page and click on the folder you want to store the prerequisite setup, for example "Application Folder"
2. In the folder create a New File Operation - File Download operation
3. Enter the setup file details - the name should contain the file extension; If you want to use a predefined Prerequisite, you can copy the URL for the download from the "Prerequisites" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Download prerequisite, but not run it?

Thanks for the information. How to know if the file has finished downloading to run the file or it has not downloaded to skip it please?
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Download prerequisite, but not run it?

Hello,

We don't have a built-in support to interrogate the installer if the file was downloaded with success or not. Maybe we will consider this improvement in a future version of our application, thank you for your suggestion.

As a workaround, you will need to create a custom action with sequence after "Install Execution Stage -> Add Resources" action group and set its "Execution Time" to "When the system is being modified (deferred)". This custom action should run your won code which will search for the downloaded file on disk and run it when found. Am example about how to create a custom action is exposed in our "Integrate and debug custom actions" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: Download prerequisite, but not run it?

Thank you
K

Return to “Common Problems”