Bundle installer exits b4 prerequisites are installed - Advanced Installer Community
kog
Posts: 10
Joined: Thu Apr 03, 2014 8:30 am

Bundle installer exits b4 prerequisites are installed

I have created a bundle installer that consists of several 3rd party packages and a few proprietary software packages. When I start the bundle installer in silent mode from the command line, it finishes almost instantly but the 3rd party packages and proprietary sw packages are still installing. What can I do if I want the (main) bundle installer to finish/exit AFTER all of the sw packages defined as prerequisites are installed? Thank you for your help.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bundle installer exits b4 prerequisites are installed

Hello,

Indeed, this is the default behavior due to Windows Installer limitations. Also, you cannot make the main bundle installer to wait/exit until your prerequisites have been installed when performing a silent install.

Please let me explain how the prerequisites are installed.
The feature-based prerequisite:
Full UI installation package:
  • -We have a synchronous custom action in the “Install UI sequence” . This is required because you cannot have two .msi packages running in install UI sequence.
Silent installation package:
  • -We have an .EXE custom action, asynchronous execution which is launched after the install execute state from the main package ends. We do this because for silent installation there is no UI sequence, so we cannot schedule a custom action to be executed before install execute sequence starts.
The Pre-Install prerequisite are handled by bootstrapper in separate process. After the prerequisite finish installation then the .msi package is launched by the bootstrapper. The Post-install prerequisites behaves the same way as Feature-Based prerequisites in a silent installation, no matter how you perform the installation (silent or with Full UI).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kog
Posts: 10
Joined: Thu Apr 03, 2014 8:30 am

Re: Bundle installer exits b4 prerequisites are installed

So if I understand correctly all of the software packages/prerequisites that are now a part of the Feature based prerequisites should/could be moved to the Pre-install prerequisites in order to obtain the desired behaviour in the silent mode? How would that affect the UI mode?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bundle installer exits b4 prerequisites are installed

Hello,
So if I understand correctly all of the software packages/prerequisites that are now a part of the Feature based prerequisites should/could be moved to the Pre-install prerequisites in order to obtain the desired behaviour in the silent mode?
Indeed, the Pre-Install prerequisites will be installed before the .MSI is launched when performing a silent installation too. The installation is handled by our bootstrapper. Please note that the bootstrapper require the package type as an .EXE.

In order to launch the .EXE without UI and the embedded .MSI too you can use the following command line statement:

Code: Select all

Setup.exe /exenoui /qn
Please take a look on the EXE setup file article with related information for hints and guidance.
How would that affect the UI mode?
When the installation package is run, the boostrapper will determine if there are any prerequisites to be installed (based their install conditions) and will display a dialog something similar with the following dialog (before the .MSI is launched).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kog
Posts: 10
Joined: Thu Apr 03, 2014 8:30 am

Re: Bundle installer exits b4 prerequisites are installed

Are this Pre-install prerequisites then also a part of the selection dialog where you can define what you want to install and what not?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bundle installer exits b4 prerequisites are installed

Hello,

The Pre-Install prerequisites are are installed by an EXE bootstrapper before your MSI is launched. The prerequisites will be displayed in a dialog where the already installed prerequisites are unchecked for installation while the ones which are missing are marked for installation. The user can decide further which of them can be installed or not.

If you want to hide the already installed prerequisite for being displayed in the selection dialog you can enable the Hide already installed prerequisites option from the prerequisite view. If this option is checked, already installed prerequisites will not be displayed in the list. Instead, only the missing prerequisites will be showed and selected for install.

If you want to prevent the user to disable the installation of any prerequisite which is required for the installation process you can uncheck the Continue with main installation even if the prerequisite is not installed option from the Prerequisite Properties Tab.

You can also set the bootstrapper UILevel to the level of the user interface desired in the Bootstrapper UI dialog from the Dialogs page.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
philbo
Posts: 11
Joined: Mon May 04, 2015 12:33 pm

Re: Bundle installer exits b4 prerequisites are installed

Hi,

I am currently running into the same problem. However, we need to provide MSI packages to our customers and I would need to install 2 prerequisites (exe files) right before the main installation.

Is there any workaround for this problem?

1) Like create msi packages out of this exe packages with advanced installer and then insert those 2 into the feature based prerequisites or would this not change anything on the current problem?
2) My AI project is only using a custom action in the main installation sequence (doing configuration with a powershell script). Can I start the installation of those 2 prerequisistes in the custom action and will then have a sequential installation of prerequisistes?

BR,

Philipp
philbo
Posts: 11
Joined: Mon May 04, 2015 12:33 pm

Re: Bundle installer exits b4 prerequisites are installed

Hi,

I have created a custom action right after the Add Ressources execution stage, which installs the prerequisistes (checking it in the same script before :)). Turned out that it worked. The prerequisiste itself are coming with the msi packages and are copied like all the other necessary files before the custom action is executed.

BR,

Philipp
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bundle installer exits b4 prerequisites are installed

Hi Philipp,
Is there any workaround for this problem?
There isn't other workaround due to Windows Installer limitation.
Windows Installer allows only one MSI-based installation to run at any given time. Therefore, if you launch another MSI package while an MSI installation is in progress, you should get the following message:
Error 1500. Another installation is in progress. You must complete that installation before continuing this one.
Can you please make sure your scenario is working as expected.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”