Skip to content
Permalink
Browse files

installer: force uninstall before install.

In theory, the installer should already do this, but if we
aren't caferful with our component GUID'ing (or so the docs say),
it can break.

This method will force the uninstallation to happen before
installation.

This should fix the issue where stale files from old versions
are left behind.
  • Loading branch information...
mkrautz committed Jun 6, 2015
1 parent 06e19e6 commit 3d4663465ea1e528a299f1939237c31a4188775c
Showing with 1 addition and 1 deletion.
  1. +1 −1 installer/Product.wxs
@@ -32,7 +32,7 @@
VersionNT > 501 OR (VersionNT = 501 AND ServicePackLevel >= 2) OR (VersionNT = 502 AND ServicePackLevel >= 1)
</Condition>

<MajorUpgrade AllowDowngrades='no' AllowSameVersionUpgrades='yes' MigrateFeatures='yes' Schedule='afterInstallExecute' DowngradeErrorMessage='A later version of [ProductName] is already installed.' />
<MajorUpgrade AllowDowngrades='no' AllowSameVersionUpgrades='yes' MigrateFeatures='yes' Schedule='afterInstallValidate' DowngradeErrorMessage='A later version of [ProductName] is already installed.' />

<Media Id="1" Cabinet="$(var.ProductName).cab" EmbedCab="yes" CompressionLevel="high" />

0 comments on commit 3d46634

Please sign in to comment.
You can’t perform that action at this time.