title: Wix Installer - Add custom dialog to WixUI_Minimal
body: <p>Please note - I don't want to change anything in WixUI_Minimal(if possible).</p>
  
  <p>I am trying to add a custom dialog(UserTypeDlg) after WelcomeEulaDlg in WixUI_Minimal i.e whenever a user clicks on Install button after accepting license. This part works fine</p>
  
  <p>On custom dialog I have provided back button which works just fine and takes me to WelcomeEulaDlg. However, when I again click on Install button it directly start installation with out showing my custom dialog.</p>
  
  <p>Could someone help me to get around this?</p>
  
  <p>My code is -
      Custom dialog
          
        
          
            
            
            --></p>
  
  <pre><code>      &lt;Dialog Id="UserTypeDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes"&gt;
          &lt;!--&lt;Control Id="InstallButton" Type="PushButton" Text="Install" Height="17" Width="56" X="245" Y="243"&gt;
            &lt;Publish Event="EndDialog" Value="Return" /&gt;
          &lt;/Control&gt;--&gt;
          &lt;Control Id="UserTypeRadioGroup" Type="RadioButtonGroup" Property="UserTypeRadioButtonGroup" Height="100" Width="100" X="50" Y="50"&gt;
            &lt;RadioButtonGroup Property="UserTypeRadioButtonGroup"&gt;
              &lt;RadioButton Value="1" Text="Admin" Height="17" Width="50" X="50" Y="0" /&gt;
              &lt;RadioButton Value="2" Text="Domain User" Height="17" Width="100" X="50" Y="20" /&gt;
            &lt;/RadioButtonGroup&gt;
          &lt;/Control&gt;
          &lt;!--&lt;Control Id="Next" Type="PushButton" X="245" Y="243" Width="100" Height="17" Text="Next"&gt;
            &lt;Publish Event="EndDialog" Value="Return" /&gt;
          &lt;/Control&gt;--&gt;
          &lt;Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" &gt;
            &lt;Publish Property="WixUI_InstallMode" Value="Update"&gt;Installed AND PATCH&lt;/Publish&gt;
          &lt;/Control&gt;
          &lt;Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"&gt;
            &lt;Publish Event="SpawnDialog" Value="CancelDlg"&gt;1&lt;/Publish&gt;
          &lt;/Control&gt;
          &lt;!--&lt;Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" /&gt;--&gt;
          &lt;Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)"&gt;
            &lt;Publish Event="NewDialog" Value="WelcomeEulaDlg"&gt;1&lt;/Publish&gt;
          &lt;/Control&gt;
  
        &lt;/Dialog&gt;
  
        &lt;!--&lt;Dialog Id="AdminDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="no"&gt;
        &lt;/Dialog&gt;--&gt;
      &lt;/UI&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>Product installation file:-</p>
  
  <pre><code>    &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
    &lt;Fragment&gt;
      &lt;UI Id="UserTypeUI"&gt;
        &lt;Property Id="UserTypeRadioButtonGroup" Value="2" /&gt;
        &lt;!--&lt;TextStyle Id="Tahoma_Regular" FaceName="Tahoma" Size="8" /&gt;
        &lt;Property Id="DefaultUIFont" Value="Tahoma_Regular"/&gt;--&gt;
  
        &lt;Dialog Id="UserTypeDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes"&gt;
          &lt;!--&lt;Control Id="InstallButton" Type="PushButton" Text="Install" Height="17" Width="56" X="245" Y="243"&gt;
            &lt;Publish Event="EndDialog" Value="Return" /&gt;
          &lt;/Control&gt;--&gt;
          &lt;Control Id="UserTypeRadioGroup" Type="RadioButtonGroup" Property="UserTypeRadioButtonGroup" Height="100" Width="100" X="50" Y="50"&gt;
            &lt;RadioButtonGroup Property="UserTypeRadioButtonGroup"&gt;
              &lt;RadioButton Value="1" Text="Admin" Height="17" Width="50" X="50" Y="0" /&gt;
              &lt;RadioButton Value="2" Text="Domain User" Height="17" Width="100" X="50" Y="20" /&gt;
            &lt;/RadioButtonGroup&gt;
          &lt;/Control&gt;
          &lt;!--&lt;Control Id="Next" Type="PushButton" X="245" Y="243" Width="100" Height="17" Text="Next"&gt;
            &lt;Publish Event="EndDialog" Value="Return" /&gt;
          &lt;/Control&gt;--&gt;
          &lt;Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" &gt;
            &lt;Publish Property="WixUI_InstallMode" Value="Update"&gt;Installed AND PATCH&lt;/Publish&gt;
          &lt;/Control&gt;
          &lt;Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)"&gt;
            &lt;Publish Event="SpawnDialog" Value="CancelDlg"&gt;1&lt;/Publish&gt;
          &lt;/Control&gt;
          &lt;!--&lt;Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" TabSkip="no" Text="!(loc.WelcomeDlgBitmap)" /&gt;--&gt;
          &lt;Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="!(loc.WixUIBack)"&gt;
            &lt;Publish Event="NewDialog" Value="WelcomeEulaDlg"&gt;1&lt;/Publish&gt;
          &lt;/Control&gt;
  
        &lt;/Dialog&gt;
  
        &lt;!--&lt;Dialog Id="AdminDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="no"&gt;
        &lt;/Dialog&gt;--&gt;
      &lt;/UI&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>