title: How to write bootstrap EXE, which launch MSIEXEC.EXE and then wait for its completion
body: <p>I'm trying to install my ActiveX plugin, packaged in nsi in a cab file, and encountered a problem.</p>
  
  <p>The log is </p>
  
  <pre><code>Code Download Error: (hr = 80070005) Access is denied.
  
  ERR: Run Setup Hook: Failed Error Code:(hr) = 80070005, processing: msiexec.exe /package "%EXTRACT_DIR%\TempR.msi"
  </code></pre>
  
  <p>I think is the same as this one:</p>
  
  <p><a href="http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/3d355fb6-8d6a-4177-98c2-a25665510727/" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/3d355fb6-8d6a-4177-98c2-a25665510727/</a></p>
  
  <p>I want to try the solution that is suggested there, but has no idea how to</p>
  
  <blockquote>
    <p>create a small bootstrap EXE, which
    does nothing but to launch MSIEXEC.EXE
    and then wait for its completion.</p>
  </blockquote>
  
  <p>Can someone provide any help?</p>
  
  <p>Thanks!!</p>