Hi,
Indeed, you can condition the installation of a feature through the
Installation behavior from the
Feature Properties. Every feature has an attached integer number which represents the feature's "Install level". This install level is compared with the user-selected application install level and it dictates if the feature should be installed or not. There are three well known install levels values: 0 (Disabled), 1 (Typical) and 4 (Complete).
Also, feature installation behavior can be changed at install-time using
Install-time Conditions. Use the
[ Add Install-time Conditions ] to display available options.
I’ve attached a zip file that contains a sample which implements this scenario. In my installation package there are 4 features:
MainFeature -
installed by default
Feature_A -
installed by default
Feature_B -
installed only in Complete installation ( INSTALLLEVEL=4 )
Feature_C -
which will be installed based on a condition ( FEATURE_C_INSTALL="true" )
So, the
Feature_C will be installed only if the
FEATURE_C_INSTALL="true" statement will be passed through command line.
e.g.
msiexec.exe /i <path_to_package> FEATURE_C_INSTALL="true"
If you want to install all features you can use a command line statement like that:
msiexec.exe /i <path_to_package> FEATURE_C_INSTALL="true" INSTALLLEVEL=4
Please let me know if there is anything else I can help with.
Best regards,
Dan