title: Wix 'Advanced' Installation does not uninstall previous version
body: <p>I would like to apologize in advance if I'm leaving out any important details. </p>
  
  <p>I am attempting to perform an upgrade where the previous version of the software (and all components) should be removed prior to installing the new one.</p>
  
  <p>I'll try to avoid boring you with the details and say if you do a 'typical' installation, everything goes as planned. If you choose to do an advanced installation (specify installation for all users, install location, etc) then it seems to be skipping the 'uninstall previous version' step altogether.</p>
  
  <p>So far, I've done the following:</p>
  
  <p>-Edited my UpgradeVersion tags to match the advice of another stackoverflow question</p>
  
  <p>-Verified the 'OLDVERSIONBEINGUPGRADED' property is correctly being set</p>
  
  <p>-Verify that upgrade codes/ids are the same, version numbers are sequential (upgrading from 1.0.8 to 1.0.10) - after all, the 'typical' installation works correctly!</p>
  
  <p>-Followed the advice given here: <a href="https://stackoverflow.com/questions/775259/wix-always-overwrite-the-previous-version">WiX-- always overwrite the previous version</a> and followed this: <a href="http://wix.sourceforge.net/manual-wix3/major_upgrade.htm" rel="nofollow noreferrer">http://wix.sourceforge.net/manual-wix3/major_upgrade.htm</a></p>
  
  <p>-Tried to implement a hack by manually calling msiexec to uninstall a previous version by it's product id (this failed because we're already installing something -- is there a better way to schedule this?)</p>
  
  <p>My Product / Upgrade section looks like this:</p>
  
  <pre><code>&lt;Product Id="GUID1" UpgradeCode="GUID2" Version="1.0.10.0"&gt;
      &lt;Package Compressed="yes" InstallerVersion="200"/&gt;
      &lt;MajorUpgrade Schedule="afterInstallInitialize" 
        DowngradeErrorMessage="Another version of [ProductName] is already installed."/&gt;
      &lt;Upgrade Id="GUID2"&gt;
          &lt;UpgradeVersion Minimum="1.0.10" OnlyDetect="yes"
               Property="NEWERVERSIONDETECTED" /&gt;
          &lt;UpgradeVersion Maximum="1.0.10" IncludeMaximum="no" 
               Property="PREVIOUSVERSIONINSTALLED" /&gt;
      &lt;/Upgrade&gt;
  </code></pre>
  
  <p>I'm a Wix newbie, so I may have overlooked important details while describing my problem. If I have neglected to include something important, please let me know. </p>
  
  <p>Thanks in advance for any input you can provide.</p>