doctorp
Posts: 13
Joined: Tue Jan 14, 2014 1:01 pm

Prerequisites - Do I Need To Download?

Hi there, I'm trying to make a new installer.

An exe based installer which downloads the msi from the web.

That part works well. My app requires the 4.0 + .Net framework. I have worked out how to check for it being installed, but....

I would like the installer to only download the 4.0 .Net Framework installation file if the prerequisite is NOT installed.

Seems like a bad user experience for the user to have to wait for a 50MB file to download when most of the time it won't even be used or installed.

Can anyone help guide me as to how I make the installer only download 4.0 .Net Framework if it needs to install it?

Cheers

Doc
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites - Do I Need To Download?

Hi Doc and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can go in the Prerequisites page, click on "Packages" and check the predefined ".NET Framework 4.0" prerequisite from the list. That prerequisite will be downloaded and installed on the user's machine only if it is not installed on that machine. You can also go in the "Install Conditions" tab of that prerequisite to see the searches that are done to determine if the it will be installed or not.

For more details you can take a look on the Add prerequisite tutorial.

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
doctorp
Posts: 13
Joined: Tue Jan 14, 2014 1:01 pm

Re: Prerequisites - Do I Need To Download?

Hi there

Thanks for the prompt response and the warm welcome.

I've done as you said (have to say I didn't notice that packages was a separate menu item all on its own and not just a heading for the tree).

The problem is that the exe still seems to be downloading ALL of the prerequisite files each time rather than simply proceeding with the install.

Is there a way to stop this?

My settings are shown attached.
Attachments
Untitled-1.jpg
Untitled-1.jpg (70.85 KiB) Viewed 6625 times
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites - Do I Need To Download?

Hi Doc,

Are you sure that the machine where you test your package has the .Net Framework 4.0 application installed on it? In order to test if the install conditions of the prerequisite are fulfilled, you can go in the "Install Conditions" tab, select all the searches from the "Install Conditions" section and click on the [Evalueate] button.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
doctorp
Posts: 13
Joined: Tue Jan 14, 2014 1:01 pm

Re: Prerequisites - Do I Need To Download?

100% sure. My software wont run without it.
I think I've found a work around - thanks for the support though.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisites - Do I Need To Download?

You're welcome. Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Prerequisites - Do I Need To Download?

Hi
doctorp wrote:The problem is that the exe still seems to be downloading ALL of the prerequisite files each time rather than simply proceeding with the install.

Is there a way to stop this?
IF the prerequisite is already installed, the most likely the cause is that the Install Conditions are incorrect.

For your use case we recommend to use our predefined prerequisite .NET Framework 4.0 (web installer) or .NET Framework 4.0 Client Profile (web installer) that has a small size and correct install conditions.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”