[tomboy] [Setup] Allow (major) upgrades, deny downgrades (fixes bug #602172)
- From: Benjamin Podszun <bpodszun src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] [Setup] Allow (major) upgrades, deny downgrades (fixes bug #602172)
- Date: Tue, 10 Aug 2010 14:03:02 +0000 (UTC)
commit c00909e8189fc6b1114612badac109879be79104
Author: Benjamin Podszun <benjamin podszun topimagesystems com>
Date: Tue Aug 10 15:44:08 2010 +0200
[Setup] Allow (major) upgrades, deny downgrades (fixes bug #602172)
Added standard by-the-book major upgrades. Newer versions of Tomboy
now silently replace the previous version. This works right away and
upgrades all previous builds, starting at 0.13.0.
Future build based on this change make sure that they don't downgrade
the already installed version (if that is intended, the user has to
manually uninstall the newer version first).
Setup/Setup.wxs | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/Setup/Setup.wxs b/Setup/Setup.wxs
index 2e535ed..a376b0a 100644
--- a/Setup/Setup.wxs
+++ b/Setup/Setup.wxs
@@ -10,6 +10,24 @@
Comments="Installs or upgrades Tomboy notes/"
InstallerVersion="200"
Compressed="yes"/>
+
+ <Upgrade Id="4401CB77-D6D4-4903-B1F9-41E2F80DF785">
+ <UpgradeVersion Minimum="0.0.13"
+ IncludeMinimum="yes"
+ Maximum="!(bind.FileVersion.Tomboy.exe)"
+ Property="OLDERVERSIONBEINGUPGRADED" />
+ <UpgradeVersion Minimum="!(bind.FileVersion.Tomboy.exe)"
+ OnlyDetect="yes"
+ Property="NEWERVERSIONDETECTED" />
+ </Upgrade>
+ <Condition Message="A later version of [ProductName] is already installed.
If you intend to downgrade, please remove the other version first.">
+ NOT NEWERVERSIONDETECTED OR Installed
+ </Condition>
+
+ <InstallExecuteSequence>
+ <RemoveExistingProducts After="InstallExecute"/>
+ </InstallExecuteSequence>
+
<!--
Source media for the installation.
Specifies a single cab file to be embedded in the installer's .msi.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]