How to hide function parameters

I am using Wix 3.5 to build the MSI installer. I want to know if there is a way to hide some options in the "Custom Installation Features" dialog box (in which you choose what to install from the function tree).

I want to have only options for "Will be installed on the local hard drive" and "The whole function will be unavailable"

Currently, in addition to these two options, I have the following options:

  • "The whole function will be installed on the local hard drive"
  • "Will be installed to run from the network"
  • "The whole function will be installed to run from the network"
+7
source share
3 answers

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 .

+7
source

To remove "This function will be installed if necessary," set in your AllowAdvertise = "no" function, https://www.firegiant.com/wix/tutorial/user-interface/custom-settings/

+1
source

If you are using WiX UIExtension, you need to download the WiX source code for this extension and modify it accordingly. The following links will get you started:

WiX UI Setup

Wix user interface for installing SQL database

How to add user interface to WiX 3 installer?

UPDATE:

After exploring the WiX UI source, FeaturesDlg displays the "SelectionTree" control. It seems that the control (along with the other controls displayed by the WiX interface) are Windows Installer controls, not WiX-specific controls. See SelectionTree . Thus, it seems that there is no easy way to β€œdisable” these options.

0
source

All Articles