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
FOLLOW US
Get the latest news in Application Packaging