Automatic account creation is now enabled. Captcha authentication required for account creation and editing unless you are trusted here.

User Interface Basics

From WiX Wiki at MindCapers

Jump to: navigation, search

Contents

Stock Sequences

Stock Dialogs

Stock Bitmaps and Icons

EULA/End User License Agreement

Assuming you are using WixUIExtension.dll (nearly everyone does) you are probably wondering how to replace the default license agreement with your own. Specify a WiXVariable with an ID of WixUILicenseRtf with the value of an Rich Text Format (RTF) file that contains your license text, like this:

 
<WixVariable Id="WixUILicenseRtf" Value="pathto\mylicense.rtf" />
 

If you are using Wix from the Visual Studio IDE then the best thing to do with the license file is put it in the same folder as your solution file and refer to it like this:

 
<WixVariable Id="WixUILicenseRtf" Value="$(var.SolutionDir)mylicense.rtf" />
 

Pitfalls

In some cases the RTF text will not be displayed to the user at installation in the setup window unless that person scrolls the pane containing the agreement text. If you find that to be the case, use different software to create the RTF file. For instance, OpenOffice Writer version 3 may create a defective file. Microsoft Office usually produces a file which will be displayed properly without user intervention.

Advanced Topics

EmbeddedUI

It seems there is a problem (as of August 2008) with the UI element, worked around by specifying the .dll extension in the Id attribute. This is a working example:

 
<UI>
  <EmbeddedUI Id="MyCustomUI.dll" SourceFile="$(var.MyCustomUI.TargetDir)$(var.MyCustomUI.TargetName).CA.dll"/>
</UI>
 
Personal tools