We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Henrik2011
Posts: 3
Joined: Mon May 16, 2016 2:09 pm

URL prerequisite with multiple files

Hi,
My installer uses prerequisite URL option to download and install prerequisites, this works well for the most part, but I have one unsolved problem. Our software needs a prerequisite package which is quite large (2.7Gb) and this package is a self-extracting zip-package which means that “Install command lines” I need will not work. When the self-extracting zip-package executes it creates a temporary folder in which the installation files are placed. This installation contains multiple folders and files, see below:

LicenseAgreements\
Products\
SupportFiles\
setup.exe
readme.html
readme_chs.html
readme_deu.html
readme_fra.html
readme_jpn.html
readme_kor.html
nidist.id
setup.ini
DAQInstallGuide.pdf
patents.txt

The problem is that as far as I understand that Advance installer URL prerequisite option require a single file to download so I can´t use these files?
Any suggestions?

Best regards
Henrik
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: URL prerequisite with multiple files

Hi Henrik and welcome to Advanced Installer forums,

Please note that we added built-in support in Advanced Installer to download files (eg. an archive) and extract the contents of that archive. No code required to be written for this, just specify the URL of download and the extract target location. For details, please take a look on the Download and Extract archive at install time.

So, you can use a File Download operation to download a .zip archive. In the File Download Dialog you can customize a file download operation.

Then, you can use the Extract Archive operation to extract the downloaded archive.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrik2011
Posts: 3
Joined: Mon May 16, 2016 2:09 pm

Re: URL prerequisite with multiple files

Hi Dan,
Thanks for the fast replay but I still stuck. :oops:

Just to be clear of what I want the installer to perform.
1. Check if the prerequisite is installed or not previously, install when missing or older version found.
2. Download the prerequisite from URL
3. Execute with “command lines”
4. Remove the prerequisite installer (preferably)
The problem is that my prerequisite installer is an .exe filer with multiple files and folders.

The ”download and extract archive” only place my prerequisite installer on the target machine, how do I get it to run with my command lines and remove the installer when its done?

Best regards
Henrik
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: URL prerequisite with multiple files

Hello Henrik,

1. For this you can try to use a search (e.g. PREREQ_SEARCH) in our "Search" page.

2. For this you can use a file download operation as my colleague previously instructed you and in its "Condition" field use the above search associated property (PREREQ_SEARCH).

3. To execute the downloaded file you can add a "Launch file" custom action in "Custom Actions" page. The custom action should be added as deferred after the "Install Execution Stage -> Add Resources" action group.

4. To remove the downloaded EXE setup during the installation process you will have to create your own custom action to do so which should be added after the above custom action (3).

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Henrik2011
Posts: 3
Joined: Mon May 16, 2016 2:09 pm

Re: URL prerequisite with multiple files

Hello Daniel,
I’m losing my mind over this! I have tried to do it as per your instructions but I’m stuck again. I have two prerequisite installers i need to get this to work with, let’s call them MX and RT

I got my installer to do the following with the MX prerequisite installer:
1) Search works fine based on “product version (product code)”. When MX is previously installed the installer skips download and vice versa.
2) When needed the installer downloads the .zip package and unpacks it.
3) Installation is executed with my command line BUT the prerequisite installer status indicator gets stuck at 0% and never finish.

No error messages, nothing. If I run the MX installer manually with my command lines it works fine.

So to test if this behaviour is unique to the MX installer I decide to do the same thing with the RT prerequisite. The Search and Download are configured exactly the same way as with the MX but it newer downloads anything. No error messages, my installer just finish like the RT was installed on the system.

Any suggestions on how to proceed with these two problems is welcome?

Best regards
Henrik
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: URL prerequisite with multiple files

Hello Henrik,

I really apologize for my delayed reply but we were quite busy lately (on last Thursday we had a release here).

In order to get a better view of your installation scenario and to further investigate this, can you please please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

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

Return to “Building Installers”