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 ...

Get WiX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.