Skip to content
Permalink
Browse files

Resolve installer upgrade issues.

The current install removes the installed products after upgrading
to the new one. With x86<->x64 transitions into the same directory
this can lead to the installer removing files just installed.
Work around that by uninstalling first and then doing the upgrade
install.
  • Loading branch information...
hacst committed Oct 11, 2014
1 parent fc0e20b commit 1749ef46dfc4c9ead4e41766ba9cace786f4fa35
Showing with 2 additions and 2 deletions.
  1. +2 −2 installer/Product.wxs
@@ -29,7 +29,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='afterInstallInitialize' DowngradeErrorMessage='A later version of [ProductName] is already installed.' />

<Upgrade Id="$(var.Old64BitProductUpgradeCode)">
<!-- 64 bit installers had a seperate upgrade code during the beta. As we do not actually want both versions
@@ -217,7 +217,7 @@
<InstallExecuteSequence>
<AppSearch Sequence='1' />
<Custom Action="SetNSISPath" After="AppSearch">NSISINSTALL</Custom>
<Custom Action='NSISUninstall' After='InstallInitialize'>NSISINSTALL AND NOT Installed</Custom>
<Custom Action='NSISUninstall' After='RemoveExistingProducts'>NSISINSTALL AND NOT Installed</Custom>
</InstallExecuteSequence>
</Product>
</Wix>

0 comments on commit 1749ef4

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