title: Install components before custom actions
body: <p>My setup app should create user in sql server and restore a database. I do it as two separate projects;one to copy the database backup file to the machine, and the other one to do the actions. I'm planning to make it a single project. </p>
  
  <pre><code>  &lt;Fragment&gt;  
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;      
         &lt;Directory Id="ProgramFiles64Folder" Name="Program Files"  &gt;
            &lt;Directory Id="INSTALLFOLDER" Name="My Produact name" &gt;
              &lt;Directory Id="DBDIR" Name="DB PreReq"  &gt;&lt;/Directory&gt;
            &lt;/Directory&gt;
         &lt;/Directory&gt;
      &lt;/Directory&gt;
  
      &lt;UI Id="DbConfigSetupUI"  &gt;      
        &lt;TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" &gt;&lt;/TextStyle&gt;
        &lt;TextStyle Id="DlgTitleFont" FaceName="Tahoma" Size="8" Bold="yes" &gt;&lt;/TextStyle&gt;
        &lt;UIRef Id="Custom_WixUI_Mondo" /&gt;      
        &lt;UIRef Id="WixUI_ErrorProgressText" /&gt;
        &lt;InstallUISequence &gt;               
            &lt;Custom Action="CreateUserWithSa"  Before="FileCost"  &gt;NOT Installed&lt;/Custom&gt;          
            &lt;Custom Action="CreateUserWithWindows" After="CreateUserWithSa"  &gt;(SARETURN="fail") AND NOT Installed&lt;/Custom&gt;
            &lt;Show   Dialog="ConnectionStringDialog" After="CreateUserWithWindows"   &gt;(WINDOWSRETURN="fail") AND NOT Installed&lt;/Show&gt;
            &lt;Custom Action="CreateUserWithPrompt"  After="ConnectionStringDialog" &gt;(DBLOGIN AND PASSWORD) AND NOT Installed&lt;/Custom&gt;        
            &lt;Custom Action="CreateDB"  After="CreateUserWithPrompt" &gt;(SARETURN="pass" OR WINDOWSRETURN="pass" OR PROMPTRETURN="pass") AND NOT Installed&lt;/Custom&gt;        
        &lt;/InstallUISequence&gt;      
      &lt;/UI&gt;
    &lt;/Fragment&gt;
  </code></pre>
  
  <p>Here the files are not being copied(components are placed in a separate file), but the custom actions are being done. Since the backup file is necessary to restore. I need that to happen first. Is there a way to achieve that?</p>