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

Deciding which dialog to show next depending on the user's choices


Sometimes, you'll want to display one dialog or another depending on choices that the user has made up to that point. For example, suppose we ask them whether they want to install a new SQL Server database or use an existing one. Depending on their decision, the next screen they see will either be one that asks for details about the new database or a screen that asks them to specify where the existing database can be found. In this recipe, we'll insert such a dialog and change which dialog to show next depending on the choice the user makes.

Getting ready

To prepare for this recipe, perform the following steps:

  1. Create a new setup project and name it SwitchingDialogsInstaller.

  2. Use the technique discussed in the last recipe, wherein we copy WixUI_InstallDir.wxs and rename it CustomInstallDir.wxs, to insert a dialog called DatabaseChoice.wxs into an existing wizard. This new dialog will be where the user chooses whether they want...