AINewUser
Posts: 8
Joined: Fri May 11, 2012 6:33 am

Single installer calling other installers

Hi,

Can we create single installer calling other installers (.exe or .msi) created using Advanced Installer 8.9 ?

It should install the packages depending upon user's selection.

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

Re: Single installer calling other installers

Hello,

Yes, you can achieve what you want. You can add your secondary packages to your main package as temporary files. Then you can run it from your main package UI using custom actions which will be launched based on check boxes states.

In order to obtain this you should proceed as follows:
- Add the packages (i.e. MY_PACKAGE1.MSI AND MY_PACKAGE2.MSI ) you want to run during your main installation, to your main package as temporary files.
- Go to "Custom Actions" page and select the "UI Custom Actions" item tree. Add two "Launch File or Open URL" predefined custom actions (i.e MY_LAUNCH1 and MY_LAUNCH2) and set its "Command" field from "Custom Action Properties" right pane like this:
  • Command: "[&MY_PACKAGE1.MSI]"
  • Command: "[&MY_PACKAGE2.MSI]"
- Also, make sure that "Synchronous execution, check return code" option, from "Custom Action Properties" right pane, is enabled.
- Go to "Dialogs" page and add a new dialog. Here add two check boxes like this:
  • Property name: CHECK1
    Value: checked
  • Property name: CHECK2
    Value: checked
- Select the [Next >] button and add the following published events:
  • Name: DoAction
    Argument: MY_LAUNCH1
    Condition: CHECK1 = "checked"
  • Name: DoAction
    Argument: MY_LAUNCH2
    Condition: CHECK2 = "checked"
- Build and run your project.

If you have any question let me know.

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

Return to “Common Problems”