title: Quiet MSI Exec from Shell Execute
body: <p>I am having some trouble getting an MSI to install "quietly". I can get the MSI to run normally like so: </p>
  
  <pre><code>TCHAR argmnt[] = TEXT("open");
  TCHAR username[UNLEN + 1];
  DWORD size = UNLEN + 1;
  GetUserName((TCHAR*)username, &amp;size);
  wchar_t run[256];
  wcscpy_s(run, L"C:\\Users\\");
  wcscat_s(run, username);
  wcscat_s(run, L"\\AppData\\Local\\Temp\\index.msi");
  ShellExecute(NULL, argmnt, run, NULL, NULL, SW_SHOW);
  </code></pre>
  
  <p>But if I add "/quiet" to the last line like so:</p>
  
  <pre><code>wcscat_s(run, L"\\AppData\\Local\\Temp\\index.msi /quiet");
  </code></pre>
  
  <p>It will not install the MSI at all. I have tried adding a TCHAR variable with the arguments like this:</p>
  
  <pre><code>TCHAR params[] = TEXT("/quiet");
  </code></pre>
  
  <p>With the updated shellexecute like this:</p>
  
  <pre><code>ShellExecute(NULL, argmnt, run, params, NULL, SW_SHOW);
  </code></pre>
  
  <p>Does anyone have any ideas?</p>