title: How to run cmd.exe hidden in Inno Setup
body: <p>I was wondering if there was any way to run the command prompt from Inno Setup's <code>Exec</code> function in a way which would hide the output from the user.  Currently I have the below function which I'd like to do this for.</p>
  
  <pre class="lang-pascal prettyprint-override"><code>Exec(
      'cmd.exe',
      '/c ' + InstallPath + '\initdb ' + '-U postgres -A password -E utf8 --pwfile=' +
          InstallPath + '\password.txt -D ' + DataPath,
      '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
  </code></pre>
  
  <p>I know you can add a flag to the <code>Run</code> section, but haven't really found anything analogous to that.  Any help would be appreciated.</p>