title: How to install MSI with /passive and "/forcerestarteventually"
body: <p>I am using <code>msiexec.exe</code> to install an MSI with the <code>/passive</code> option, to discourage cancellation.</p>
  
  <p>The problem is that if Windows Installer detects a system reboot is necessary, the reboot happens immediately after the installation finishes, and this interrupts the user's work.</p>
  
  <p>I could use <code>/norestart</code> to avoid the interruption.</p>
  
  <p>But, is there a way to enforce such a restart <em>with a delay first?</em> Something like <code>/forcerestarteventually</code>?</p>
  
  <p>In an NSIS installer I just invoke the Windows <code>shutdown.exe</code> utility. I suppose using <code>/norestart</code> and <code>SystemRebootPending</code> in a custom action, is one possibility.</p>
  
  <p>Are there any gotchas with that approach, or is there something much easier?</p>
  
  <p>Developing the MSI with WIX, for XP / Win7 - fairly easy on Windows Installer version requirements.</p>