The Feature Selection dialog box uses SelectionTree , a built-in Windows Installer control.
You can control which settings are displayed for the function using the Attributes column of the table .
The Feature WiX element has four properties that determine how the feature can be set:
- Missing: Allow / Deny
- AllowAdvertise: no / system / yes
- InstallDefault: followParent / local / source
- TypicalDefault: Advertising / Installation
The component table also determines whether the component can be started from the source or not. The Component element has the Location property:
- local
Prevents the component from starting from a source or network (this is the default behavior if this attribute is not set). - a source
Ensures that the component can only be launched from the source (it cannot be started from the user computer). - or
Allows a component to run from a source or locally.
So, to remove the option to start from the network, set the Location property of your components to local .
You cannot delete. The entire function will be installed on the local hard drive from the options. It is displayed only if there are sub-functions and allows you to install sub-elements, as well as the object itself, and not be installed on the local hard drive, which installs only the selected functions and does not affect the sub-elements.
If the subitems are always installed with the parent, you can try setting the InstallDefault attribute for the followParent .
Alexey Ivanov
source share