How to prevent a feature to be installed on Full-Install - Advanced Installer Community
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

How to prevent a feature to be installed on Full-Install

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?

Regards, Éric.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How to prevent a feature to be installed on Full-Install

Hello Eric,

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.

Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elou
Posts: 96
Joined: Tue Apr 14, 2015 9:12 am

Re: How to prevent a feature to be installed on Full-Install

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.

Regards,
Éric.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: How to prevent a feature to be installed on Full-Install

You're always welcome, Eric.

Thank you for your followup on this.

Indeed, I agree with you. Currently, this is not a very intuitive design of our application.

We will try to sync the install level value used for the "Complete" mode in the future.

Thank you for your heads-up on this.

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”