title: How to Sequence the Silent Installer .exe file before installation of main application in Custom Action Sequence?
body: <p>I am trying to Install a custom exe file before I Install main windows installer file.</p>
  
  <p>I am using Install Sheild Limited Edition. After configuring everything I have sequenced my silent installer file at "After Register Product stage" of Custom Action and it gives me error 1618(which is another installation is in progress.) I got that the main installer is in progress so it is not allowing silent installer .msi to install, but don't know how to resolve this error.</p>
  
  <p>But the issue is I am Selecting <strong>Source Location</strong> as "File Exist on Target Computer" and <strong>File Location</strong> as "INSTALLDIR".</p>
  
  <p>Upon doing this I am getting an error 1618.</p>
  
  <p>Can Anyone help me to resolve this?</p>
  
  <p>The Code inside SilentInstaller.exe file is  as below:</p>
  
  <pre><code>Process processObj = Process.Start("msiexec.exe", @"/i "folderpath\SqlLocalDB.msi" /qn IACCEPTSQLLOCALDBLICENSETERMS=YES");
                              //Loop until the process has exited
                              do
                              {
                                  //refresh the process
                                  processObj.Refresh();
                              } while (!processObj.WaitForExit(1000));
  </code></pre>
  
  <p>I have verified the path and everything but got struck in the sequence only.</p>
  
  <p>Any Help will be much appreciated. Thanks.</p>