Hello,
I want to prevent a specific feature to be installed when the user has choosed "full installation" from the SetupTypDlg.
On the other way this feature should be selectable over the CustomizeDlg, a the installed, but just when custom installation runs.
With the default way all features are installed when InstallMode has been set to InstalModeComplete.
How could I change this behavior?
Well, first of all, let me explain how Windows Installer evaluates the installation of a feature. Every feature has an Install Level flag and the main package has a property called INSTALLLEVEL. A feature is eligible for installation if its Install Level flag has a value smaller or equal than the value of the INSTALLLEVEL property.
In a case such as yours, when "Complete" option is chosen from the "SetupTypeDlg", the value of the INSTALLLEVEL property is set to "1000". This is our default implementation. So, in order for your feature to not be installed, you have to set its Install Level flag value to a number higher than "1000".
In order to do so, you can go to "Organization" page, select the feature you want to prevent the installation for, and under "Installation Behavior", select the "Not installed" and leave the "Installed if" field unchanged. Under the "Disabled if" field, click on "More options" and set the level to a number higher than "1000", for example "1001". This can be done in the "When all conditions are false, use the following level:" field.
Hi Catalin,
thank for your reply, it helps.
- by the way:
I've already tried by setting the value to '5' because the default value in the pull-down are "(0) Disable, (1) Typical, (4) Complete".
It would be a good idea update those default values.
FOLLOW US
Get the latest news in Application Packaging