Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WIX install default feature not installed

Tags:

wix

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 ?

like image 767
Pacman Avatar asked Jun 07 '12 17:06

Pacman


1 Answers

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" >
like image 80
rmrrm Avatar answered Sep 21 '22 11:09

rmrrm