WixUI_Advanced Dialog Set
The WixUI_Advanced dialog set provides the option of a one-click install like WixUI_Minimal, but it also allows directory and feature selection like other dialog sets if the user chooses to configure advanced options.
This dialog set is defined in the file WixUI_Advanced.wxs in the WixUIExtension in the WiX source code.
To use WixUI_Advanced, you must include the following information in your setup authoring:
- A directory with an Id named APPLICATIONFOLDER. This directory will be the default installation location for the product. For example:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="APPLICATIONFOLDER" Name="My Application Folder">
- A property with an Id named ApplicationFolderName and a value set to a string that represents the default folder name. This property is used to form the default installation location.
For a per-machine installation, the default installation location will be [ProgramFilesFolder][ApplicationFolderName] and the user will be able to change it in the setup UI. For a per-user installation, the default installation location will be [LocalAppDataFolder]Apps[ApplicationFolderName] and the user will not be able to change it in the setup UI.
<Property Id="ApplicationFolderName" Value="My Application Folder" />
- A property with an Id named WixAppFolder and a value set to WixPerMachineFolder or WixPerUserFolder. This property sets the default selected value of the radio button on the install scope dialog in the setup UI where the user can choose whether to install the product per-machine or per-user. For example:
<Property Id="WixAppFolder" Value="WixPerMachineFolder" />
It is possible to suppress the install scope dialog in the WixUI_Advanced dialog set so the user will not be able to choose a per-machine or per-user installation. To do this, you must set the WixUISupportPerMachine or WixUISupportPerUser WiX variables to 0. The default value for each of these variables is 1, and you should not set both of these values to 0 in the same .msi. For example, to remove the install scope dialog and support only a per-machine installation, you can set the following:
<WixVariable Id="WixUISupportPerUser" Value="0" />
The install scope dialog will automatically set the ALLUSERS property for the installation session based on the user's selection. If you suppress the install scope dialog by setting either of these WiX variable values, you must manually set the ALLUSERS property to an appropriate value based on whether you want a per-machine or per-user installation.
WixUI_Advanced includes the following dialogs:
In addition, WixUI_Advanced includes the following common dialogs that appear in all WixUI dialog sets:
See the WixUI dialog reference for detailed descriptions of each of the above dialogs.