title: sqlcmd.exe is hanging after running sql statement in inno package
body: <p>I'm write installation package using inno for ms sql script. I have the following code:</p>
  
  <pre><code>  strParam := '-U hel -P password -S ServerName -d test -Q "sp_test"';
    try
       Exec('sqlcmd.exe', strParam, '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
       result := ResultCode = 0;
    except
       Exec('osql.exe', strParam, '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
       result := ResultCode = 0;
    end;
  </code></pre>
  
  <p>Sp executes ok but black screen with sqlcmd.exe is hanging until either I type exit or close it. I want a window with sqlcmd.exe closed after sp is executed.</p>