summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2007-05-03 22:57:05 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2007-05-03 22:57:05 +0000
commit5bea666ba27f1735399d971bfd028a454f40e2c4 (patch)
treea1c8f27014ea349a9f7b0f26c7db890233c641ae /src
parentc1c4cf131c792c9a40213c38ae785426df430445 (diff)
downloadkrb5-5bea666ba27f1735399d971bfd028a454f40e2c4.tar.gz
krb5-5bea666ba27f1735399d971bfd028a454f40e2c4.tar.xz
krb5-5bea666ba27f1735399d971bfd028a454f40e2c4.zip
Modify WIX installer to better support upgrading betas
The WIX installers did not upgrade previous installations with the same version number as the current package being installed. This would leave multiple installations of KFW x.y.z registered as being installed on the machine even though only the most recent install is being used. This commit instructs the Windows Installer to uninstall previous installations with the same version number (the Maximum Upgrade version) as the package that is being installed while ensuring that the package being installed will not be uninstalled if the installation is being modified or repaired. ticket: new component: windows tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19541 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/windows/installer/wix/kfw.wxs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/installer/wix/kfw.wxs b/src/windows/installer/wix/kfw.wxs
index f6262459d..6d0883c5f 100644
--- a/src/windows/installer/wix/kfw.wxs
+++ b/src/windows/installer/wix/kfw.wxs
@@ -148,7 +148,7 @@
<AdminExecuteSequence />
<InstallExecuteSequence>
<Custom Action="KillRunningProcesses" After="InstallValidate"/>
- <RemoveExistingProducts After="KillRunningProcesses">UPGRADEPISMERE Or UPGRADEKFW</RemoveExistingProducts>
+ <RemoveExistingProducts After="KillRunningProcesses">(Not Installed) And (UPGRADEPISMERE Or UPGRADEKFW)</RemoveExistingProducts>
<!-- When running with a UI, CCP_Success property is not passed down to the server. -->
<Custom Action="AbortNoIE" Before="RemoveNsisInstallation">UILevel = 0 And (Not Installed) And (CCP_Success &lt;&gt; 1)</Custom>
<Custom Action="RemoveNsisInstallation" Before="AbortCantRemoveNSIS">UPGRADENSIS &lt;&gt; "" And UILevel &gt;= 4</Custom>
@@ -171,7 +171,7 @@
<!-- KfW MSI -->
<Upgrade Id="61211594-AAA1-4A98-A299-757326763CC7">
- <UpgradeVersion IgnoreRemoveFailure="no" IncludeMinimum="no" Maximum="$(var.VersionString)" IncludeMaximum="no" MigrateFeatures="yes" Property="UPGRADEKFW" />
+ <UpgradeVersion IgnoreRemoveFailure="no" IncludeMinimum="no" Maximum="$(var.VersionString)" IncludeMaximum="yes" MigrateFeatures="yes" Property="UPGRADEKFW" />
</Upgrade>
<!-- NSIS installation -->