Pacman
Pacman

Reputation: 2245

WIX install default feature not installed

I am very new to WIX installer, I have the following feature:

<Feature Id="F_MyFeature" Title="My Feature" TypicalDefault="install" Level="1" Display="expand" >

Obviously it shows in the feature list as "Will be installed on local hard drive"

I want this feature to show the "X" on it and not to be installed by default, how do I do that ?

Upvotes: 9

Views: 3594

Answers (1)

Cosmin
Cosmin

Reputation: 21436

Features are marked for installation only if their Level is lower than INSTALLLEVEL property value. Most installers have a low INSTALLLEVEL, for example 4 or 1000.

So to make your feature not installed by default (with an X next to it), simply set it's Level to a very high value. For example 32767:

<Feature Id="F_MyFeature" Title="My Feature" TypicalDefault="install" Level="32767" Display="expand" >

Upvotes: 13

Related Questions