Small problem installing a Prerequisite - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Small problem installing a Prerequisite

AI Version 12.7.1
OS: Windows 7 / Windows 8

Hello Support,

Problem:
In a current project I need to install .NET Framework 4.0 as prerequisite. I have configured this to be downloaded and installed. Nevertheless, after downloading, the installation of .NET Framework starts, but it seems as it hangs (the progress bar is never updated and the setup never ends). If I download the same file by myself (binary identical) and start it, then it works.

Questions:
  1. The hanging-problem happens actually not in AI but within the .NET Framework Setup. Could be this a problem in the way how AI call this file (e.g., rights)?
  2. I would like to support both kind of prerequisite installation, I mean, check for a path for the file and, if not there, download the prerequisite. How can i do that?
Thanks in advance for your answers.
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Small problem installing a Prerequisite

Hello Keneth,

1. This may happen if your .Net prerequisite is added as a feature-based prerequisite. Please tale a look on our "Why does .NET Framework fails as feature-based prerequisite?" faq. If this is the case please move your .Net prereq as a pre-install prerequisite type.

2. For this you can follow our "Add Prerequisites" tutorial steps to see how you can correctly add and configure a prerequisite for your main installation project.

Let us know if this helped, otherwise please give us more details about your installation requirements.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Small problem installing a Prerequisite

Hello Daniel,

thank you. Yes, my prerequisite is a feature-based one. I have only one optional feature in my installation that use .NET. That is why I have chosen this kind of prerequisite. I really don't want to force always a .NET installation if it is not needed. Could this work if I configure it as a post-install based on a condition?

About my second question:
McKool wrote:I would like to support both kind of prerequisite installation, I mean, check for a path for the file and, if not there, download the prerequisite. How can i do that?
Unfortunatelly I didn't find the answer to my question in the tutorial page. I want to do something like: Install from disk, and "if the file is missed...", then try to download it. This would be something like a mixing of the first two posibilities for a Location within the "Setup Files" tab. Do you know a way how I can achieve this?

Regards,
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Small problem installing a Prerequisite

Hello Keneth,
thank you. Yes, my prerequisite is a feature-based one. I have only one optional feature in my installation that use .NET. That is why I have chosen this kind of prerequisite. I really don't want to force always a .NET installation if it is not needed. Could this work if I configure it as a post-install based on a condition?
When adding the prerequisite as a pre-install one its installation won't be forced. The user still has the option to skip its installation. All he has to do is to uncheck it from the prerequisites list during the pre-install prerequisites dialogs.
Unfortunatelly I didn't find the answer to my question in the tutorial page. I want to do something like: Install from disk, and "if the file is missed...", then try to download it. This would be something like a mixing of the first two posibilities for a Location within the "Setup Files" tab. Do you know a way how I can achieve this?
Please note that our "Use files from disk" option refers to the build time and not to the install time. When this option is used the prerequisite setup file is embedded in the main setup file content and at install time it will be extracted and launched by the main setup.

The "Download single file from URL" option refers to the install time and when it is used the main setup will download at install time the prerequisite using the specified URL and then launch it.

So, you can either use the first option or the latter one. We don't have any option to check for the setup file of the prerequisite at install time on local machine and if not found then download it from a URL location.

If you have any questions or doubts just let us know.

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

Return to “Common Problems”