title: Command-line 'msiexec /norestart /fepmcs /qn' still reboots the PC
body: <p>I am developing an installer for our product using <a href="http://en.wikipedia.org/wiki/WiX" rel="nofollow">WiX</a>. One of the services that my installer installs requires a reboot.</p>
  
  <p>During UI installation, it asks the user, and if the user says "No", a reboot will not happen. However, using silent installation, even though I specify the <code>/norestart</code> option, it still reboots the machine.</p>
  
  <p>Here are logs of the case without silent installation where, if the user selects "No", it doesn't restart:</p>
  
  <pre><code>MSI (s) (F0:58) [04:42:00:795]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. Reconfiguration success or error status: 0.
  
  MSI (s) (F0:58) [04:42:00:795]: Value of RebootAction property is 
  MSI (s) (F0:58) [04:42:00:795]: Windows Installer requires a system restart. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. **Type of System Restart: 2. Reason for Restart: 1.**
  
  MSI (s) (F0:58) [04:42:00:796]: Product: MyProduct. Restart required. The installation or update for the product required a restart for all changes to take effect.  The restart was deferred to a later time.
  </code></pre>
  
  <p>Here are the logs where, even though the <code>/norestart</code> option is provided, a reboot happens:</p>
  
  <pre><code>MSI (s) (50:78) [04:37:06:985]: Windows Installer reconfigured the product. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. Reconfiguration success or error status: 0.
  
  MSI (s) (50:78) [04:37:06:985]: Value of RebootAction property is 
  MSI (s) (50:78) [04:37:06:985]: Windows Installer requires a system restart. Product Name: MyProduct. Product Version: 1.0.0.0. Product Language: 1033. Manufacturer: MyOrg. **Type of System Restart: 1. Reason for Restart: 1**.
  </code></pre>
  
  <p>Comparing the both log files, I noticed the following difference:</p>
  
  <p>Success Case:
  <strong>Type of System Restart: 2. Reason for Restart: 1.</strong></p>
  
  <p>Failure case:
  <strong>Type of System Restart: 1. Reason for Restart: 1</strong></p>
  
  <p>Do I need to add any properties in WiX code to handle this scenario?</p>