I'm using Wix 3.5 to build a MSI installer. I want to know if there is any way to hide some options from the "Features Custom Setup dialog" (in which you select from the Feature tree what to install).
I want to only have the options for "Will be installed on local hard drive" and "Entire feature will be unavailable"
Currently, apart from those two options i have these options:
Feature selection dialog uses SelectionTree control, a built-in control of the Windows Installer.
You can control which installation options are displayed for a feature using Attributes
column of the Feature Table.
Feature element of WiX has four properties which control how a feature can be installed:
Component table also controls whether the component can be run from source or not. The Component element has Location
property:
So to remove the option to run from the network, set Location
property of your components to local
.
You cannot remove Entire feature will be installed on local hard drive from the options. It is displayed only when there are subfeatures and enables installation of the subfeatures as well as the feature itself as opposed from Will be installed on local hard drive which installs only the selected features and does not affect subfeatures.
If the subfeatures are always installed with the parent, you can try to set InstallDefault
attribute of the subfeatures to followParent
.