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:
Create a new setup project and name it
SwitchingDialogsInstaller
.Use the technique discussed in the last recipe, wherein we copy
WixUI_InstallDir.wxs
and rename itCustomInstallDir.wxs
, to insert a dialog calledDatabaseChoice.wxs
into an existing wizard. This new dialog will be where the user chooses whether they want...