Specific control syntax

In the following sections, we will explore each type of control. We'll begin with the simpler types such as PushButton and Text, and then move on to complex controls such as SelectionTree and ProgressBar.


A button is one of the most basic types of controls and the one you'll probably use the most. In WiX, it's created by setting the Control element's Type attribute to PushButton. Use the Text attribute to set its label:

   Text="Click Me!"

   <Publish Event="EndDialog" Value="Exit" />

The following screenshot is what it looks like:

You always need to add a Publish element inside it or else the button won't do anything. The Publish ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.