Kratzer
Posts: 66
Joined: Wed Apr 10, 2013 5:36 pm

Setting Property for Feature to Install

Hello,

what is the best practice to do the following:

- we are using Enhanced UI (currently 15.1 for this project)
- we have a feature based prerequisite (located in msi file)
- when using interactive setup prerequisite should be selected to install per default
- when using interactive setup user should be able to deselect the prerequisite
- when using quiet install (/exenoui /qn) prerequisite should be installed per default
- when using quiet install prerequisite should not be installed when command line looks like ... /exenoui /qn install_prereq="0"

Thank you and best regards,
Bernd
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Setting Property for Feature to Install

Hello Bernd,

First of all, please accept my apologies for the delayed reply, but we had our Orthodox Easter holiday here.

As you may already know, feature-based prerequisites are additional packages which are handled as features during your main installation. They are launched right before the main installation after pressing the [ Install ] button. Additionally, for each feature-based prerequisite, a new feature is created in the "Organization" page, feature which can be conditioned as per your needs.
- when using interactive setup prerequisite should be selected to install per default
- when using interactive setup user should be able to deselect the prerequisite
This can be achieved in the following way:

1. The feature that is created for the prerequisite in the "Organization" page should have its "Installation Behavior" set to "Installed" by default.

2. The second point can be solved by using our predefined dialog "OptionalFeatsDlg". As its name suggests, this dialog lets the user choose which feature should be installed. Since our prerequisite is of "Feature-Based" type, it will also be treated as a feature.
- when using quiet install (/exenoui /qn) prerequisite should be installed per default
- when using quiet install prerequisite should not be installed when command line looks like ... /exenoui /qn install_prereq="0"
In what regards this:

1. The prerequisite is already installed by default, because we have set its feature "Installation Behavior" to be "Installed" by default (see point 1 from above).

2. This can be solved by conditioning the feature installation. This is also related to the "Installation Behavior" we have earlier talked about. To achieve this, please proceed as it follows:

- go to "Organization" page.

- select the feature that was created for your prerequisite

- under "Installation Behavior" section, condition the installation as it follows:

Default state: Installed
Not installed if: INSTALL_PREREQ = "0"

IB.PNG
IB.PNG (5.13 KiB) Viewed 2765 times
After doing so, when using a command line as it follows:

Code: Select all

setup.exe /exenoui /qn INSTALL_PREREQ=0
the prerequisite will not be launched for installation.

Hope this helps.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”