title: How to use install parameters and -wait while running an .exe
body: <p>I want to install SQLServer2014SP1 and then SQL Data Tools. I need it to wait for SP1 to complete before installing SQL Data Tools.</p>
  
  <p>Here's what I've been trying:</p>
  
  <pre><code>Write-Host "Launching SQL SP 1 ..."
  Start-Process "\\mynetworkpath\SQLServer2014SP1.exe" -wait /qs /IAcceptSQLServerLicenseTerms /Action=Patch /AllInstances 
  
  Write-Host "Lauching SQL Server Data Tools install ..."
  &amp; "\\mynetworthpath\SSDTBI_x86_ENU.exe" /ACTION=INSTALL /FEATURES=SSDTBI,SNAC_SDK /Q /IACCEPTSQLSERVERLICENSETERMS
  </code></pre>
  
  <p>I've tried different combinations of <code>-wait</code> and the <code>/</code> install parameters, but I get generic errors for the SP1 install failing, or it will complete and the SSDT install will never launch.</p>
  
  <p>If there's a better way to do this I'm open to suggestions. It does have to be automated though.</p>