Your first WiX project

To get started, download the WiX toolset. It can be found at:

http://wixtoolset.org/

Once you've downloaded and installed it, open Visual Studio and select New Project | Windows Installer XML | Setup Project. This will create a project with a single .wxs (WiX source) file. Visual Studio will usually call this file Product.wxs, but the name could be anything as long as it ends with .wxs.

Even the most minimal installer must have the following XML elements:

  • An XML declaration
  • A Wix element that serves as the root element in your XML document
  • A Product element that is a child to the Wix element, but all other elements are children to it
  • A Package element
  • A Media or MediaTemplate element
  • At least one Directory element with at least ...

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.