title: WiX: How to schedule the InstallUISequence
body: <p>I am working on a installer. It is very simple; I just to write some key into the <a href="http://en.wikipedia.org/wiki/Windows_Registry" rel="nofollow">Windows Registry</a>. But before doing this, I have to check some conditions, so I make four dialogs:</p>
  
  <ol>
  <li><p>Welcome;</p></li>
  <li><p>Check that connection to the Internet is available</p></li>
  <li><p>Check that the database is accessible</p></li>
  <li><p>Write the registry and show finish information.</p></li>
  </ol>
  
  <p>And I schedule the InstallUISequence like below.</p>
  
  <pre><code>&lt;InstallUISequence&gt;
      &lt;Show Dialog="Welcome"
            After="ExecuteAction"/&gt;
  &lt;/InstallUISequence&gt;
  </code></pre>
  
  <p>And I use the "next" and "pre" to navigate the other dialogs. It works, but the welcome dialog do not show immediately. Half a minute after the prepare dialog and during this half a minute, it has no progress dialog - it seems the install has finished.</p>
  
  <p>In view of this, I change the schedule like this in the Welcome dialog:</p>
  
  <pre><code>&lt;InstallUISequence&gt;
      &lt;Show Dialog="Welcome"
            before="ExecuteAction"/&gt;
   &lt;/InstallUISequence&gt;
  </code></pre>
  
  <p>And in the writeRegistry dialog:</p>
  
  <pre><code>&lt;InstallUISequence&gt;
      &lt;Show Dialog="writeRegistry"
            After="ExecuteAction"/&gt;
  &lt;/InstallUISequence&gt;
  </code></pre>
  
  <p>I want to do the ExecuteAction (write the registry) before showing the dialog writeRegistry. But it seems that there is nothing has been written into the registry.</p>
  
  <p>What is the problem here and how can it be fixed?</p>