mtilev
Posts: 44
Joined: Wed Dec 04, 2013 1:19 pm

Chaining two installers

Hello everybody,

we are delivering two loosley coupled applications by means of setups build with Advanced Installer. The first Setup calls the second one as a Custom Action and specifies command line options for silent installation (/qn). Our expectations are that the second setup exits successfully in the following cases:
  • * the second application was just installed successfully
    * the second application is already installed on the system either in the same or a newer version
In any other case, e.g. when there is an error during initial setup or upgrade, we expect an error code to be forwarded to the calling setup of the first application.

What we are obserbing, however, is, that the second application's setup returns an error when the second application is already installed - either in the same or a newer version. This causes the first application setup to exit with an error condition.

Can you provide us with advice how we can achive the expected bahaviour?

Kind reguards and thanks in advance!

Milen Tilev
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Chaining two installers

Hello Milen,

The recommended approach for this scenario would be to add the second setup as a prerequisite to your first installation project. Then, in the "Prerequisites Install Conditions" tab of the added prerequisite you can use in the "Install Conditions" section a search like this:
  • Criteria: Product Version (identify by Upgrade Code)
    Upgrade Code: <YourSecondSetupUpgradeCode>
    Required Version -> Minimum: <YourSecondSetupProductVersion>
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mtilev
Posts: 44
Joined: Wed Dec 04, 2013 1:19 pm

Re: Chaining two installers

Hello Daniel,

I apologize for the late response.

Your suggestion suites our needs. thank you.

Kind regards,

Milen Tilev
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Chaining two installers

You're welcome Milen.

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

Return to “Building Installers”