_Pete_
Posts: 9
Joined: Tue Mar 06, 2007 2:26 pm

Conditional install of prerequisite

I have the requirement:

...
Check if .Net 1.1 is installed. If not, check for msi at the same folder where current msi is running. If not found - download it from hard-coded URL and install. If failed - interrupt installation.
...

How can I do this with prerequisites?
Even with that extended 4.8 can not find the right way.

Is there any other way to accomplish the task?

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On how to add .Net Framework as prerequisite to your package switch to "Prerequisites->Software" tab and choose "Add->.Net Framework". You can specify the URL from where the prerequisite file will be downloaded in the "URL" field.

You can read more about prerequisites here:
http://www.advancedinstaller.com/user-g ... tware.html

Hope this helps.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
_Pete_
Posts: 9
Joined: Tue Mar 06, 2007 2:26 pm

Thank you Gigi.
On how to add .Net Framework as prerequisite to your package switch to "Prerequisites->Software" tab and choose "Add->.Net Framework". You can specify the URL from where the prerequisite file will be downloaded in the "URL" field.
But there is no "easy" way to choose (depended on some conditions) at the install time to download from URL or run the local setup or run the setup included into package, is not it?

The one not "easy" way I see at the moment is to have for example two slightly differently named prerequisites say ".Net Framework" (to load from URL) and " .Net Framework" (to run the setup included into package).
Is there any other methods I can try?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I don't understand this. Why you want to download the prerequisites file from an URL since it is already in the package?

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
_Pete_
Posts: 9
Joined: Tue Mar 06, 2007 2:26 pm

Hi,

Well, the issue is that it is not known if the required prerequisites (there are plenty of them not just .NET framework) are recorded on the media.

just look again at the requirement for me
Check if .Net 1.1 is installed. If not, check for msi at the same folder where current msi is running. If not found - download it from hard-coded URL and install. If failed - interrupt installation.
The idea (as far as I understand) is that they want to have different installation disks (or whatever they want). The one with everything included and the other for example only with the product itself but without (some or all) required system and third-party components (with the different licenses/prices etc...). They can not include all required msi/setup to the one package. So basically there will be the number of folders with the different component installations on the media disk. And they want the installer smart enough to check it at the installation time.

The possible solution is to use the advanced installer to create the msi for the product itself and write the custom application. The application should check the configuration and the installation file set (different files in different folders) recorded on the media and then start the necessary msi(s) or download one if it is not included. If everything is Ok it start the msi for the product. Another thing is to include custom actions to install the third-party product msi (I am not sure if I can start external (outside the package) msi this way - I did not do it before...).

I am trying to find the way to accomplish the task without custom programming just using the advanced installer.

Thanks.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Check if .Net 1.1 is installed. If not, check for msi at the same folder where current msi is running. If not found - download it from hard-coded URL and install. If failed - interrupt installation.
Actually this already can be done. When you specify a prerequisite with URL location the Bootstrapper looks for the prerequisite file in the "Downloads Folders" (witch is set by default next to the main package) and the prerequisite installation will start from there. The "Downloads Folders" can be set in the "Prerequisites->Software" page and also at install time.

If the prerequiste file is not already in the "Downloads Folders" it will be downloaded and installed.

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
_Pete_
Posts: 9
Joined: Tue Mar 06, 2007 2:26 pm

Thanks,
this is exactly what I need

Return to “Common Problems”