Hello,
In one of my project I have a prerequisite that needs to be installed.
The project has multiple features (A, B, C for the moment).
I want that prerequisite should be installed if the user selects Feature A or Feature B or both.
To achieve this, I added a feature based prerequisite and I could see this as a feature (Feature P for the moment) in the "Organisation" page.
Now, I moved Feature P as a sub feature of Feature A and if the user selects to install Feature A, the prerequisite is installed successfully.
However, I can not copy the Feature P as a sub feature of Feature B. If I move the feature P from Feature A to Feature B by holding the SHIFT key, it copies the components of Feature P, but the prerequisite is not installed when I run the installer.
Couple of solutions that I have in mind are:
1. Add same prerequisite two times and provide them to Feature A and Feature B. But this will have file duplication and the size of the installer will increase (prerequisite is embedded locally). Also, I am not sure, how will this work out if the user selects both Feature A and Feature B for installation.
2. Add the prerequisite installer as a temp file and invoke it using a custom action during "Install Execution Stage" and provide the feature installation state (both A and B) as the condition.
The solution 2 seems the good way to me for the moment but is there a straight forward way that this can be done using "Prerequisite" feature of the software?
Than you.
Prerak
FOLLOW US
Get the latest news in Application Packaging