title: WiX-- always overwrite the previous version
body: <p>I have an installer of an application that needs to install over any existing version, regardless of version number.</p>
  
  <p>Instead, I've got an installer that constantly says that I need to go to add/remove programs.  That's very frustrating behavior for my testers, since it just slows them down for no real reason in their minds-- the previous installer package would always just install, deleting any files that were previously there, so they never had to do that step.  We also have a (large) customer base that's been similarly trained, in that whatever version I install right now should overwrite whatever install I might have had before.</p>
  
  <p>It seems, from what I can gather, that the WiX paradigm is to do things like block backwards version installations and other complicated things, like patching.  Our customers, frankly, are not smart enough to know or care about patching, merging, whatever, and just want one installer that always works (and I'm inclined to agree with them; the bandwidth is cheap).  So how do I get that?</p>
  
  <p>I've tried this, but it just doesn't seem to matter:</p>
  
  <pre><code>&lt;InstallExecuteSequence&gt;
    &lt;RemoveExistingProducts Before="InstallInitialize"/&gt;
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>This is version 3.0.5120 of WiX.</p>
  
  <p>EDIT: As per Rob's suggestion there, I've added this code:</p>
  
  <pre><code>&lt;InstallExecuteSequence&gt;
    &lt;RemoveExistingProducts After="InstallInitialize"/&gt;
  &lt;/InstallExecuteSequence&gt;
  
  &lt;Upgrade Id="27cb76c7-544e-465f-b1f3-b11d9a49e416"&gt;
    &lt;UpgradeVersion Minimum="0.8.0"
                    IncludeMinimum="yes"
                    Maximum="1.5.1"
                    Property="OLDERVERSIONBEINGUPGRADED" /&gt;
  &lt;/Upgrade&gt;
  </code></pre>
  
  <p>I'm not adding the code to not allow for a rollback installation; for reasons that are incredibly embarrassing to me, let's just say that an increase in version number does not necessarily correlate to an increase in software goodness.  I don't want anyone to get locked out of what they think they need.</p>
  
  <p>Also, very important, is to change the default GUID for the product to "*" in order to make for a different GUID with a different installer, which was apparently the problem.</p>