Book Image

WiX Cookbook

By : Nicholas Matthew Ramirez
1 (1)
Book Image

WiX Cookbook

1 (1)
By: Nicholas Matthew Ramirez

Overview of this book

Table of Contents (20 chapters)
WiX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Customizing the wizard by adding a new dialog window to it


The wizards that you get with the WiX toolset are great for getting started but probably aren't a perfect fit for the information you hope to collect or display to the user. As you might expect, we can customize them so that they include our own custom screens. For example, if you want to collect a username and password from the user, you can add a screen that asks for this information and stores it in WiX properties.

The WixUI_Minimal wizard, which we've used in the previous recipes, has only one screen so it's ill-suited for customization. Let's use WixUI_InstallDir instead. It starts out with a license agreement dialog, followed by a dialog that lets the user change the installation directory, and ends with a screen that asks whether they're satisfied with their changes and provides an Install button. We will insert a dialog that's mostly blank but includes the Next, Back, and Cancel buttons. You'll be able to use this template...