[msitools: 1/3] wixl: Support IncludeMaximum and MigrateFeatures in UpgradeVersion element




commit 3427f454cc07259aea27629c68a63815c05a7c56
Author: Hendrik Eckardt <hendrik eckardt gdata-adan de>
Date:   Mon Oct 18 18:07:37 2021 +0200

    wixl: Support IncludeMaximum and MigrateFeatures in UpgradeVersion element

 tools/wixl/builder.vala | 6 ++++++
 tools/wixl/wix.vala     | 1 +
 2 files changed, 7 insertions(+)
---
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 9fa4029..319006d 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -866,12 +866,18 @@ namespace Wixl {
             var upgrade = version.parent as WixUpgrade;
             UpgradeAttribute attributes = 0;
 
+            if (parse_yesno (version.MigrateFeatures))
+                attributes |= UpgradeAttribute.MIGRATE_FEATURES;
+
             if (parse_yesno (version.OnlyDetect))
                 attributes |= UpgradeAttribute.ONLY_DETECT;
 
             if (parse_yesno (version.IncludeMinimum, true))
                 attributes |= UpgradeAttribute.VERSION_MIN_INCLUSIVE;
 
+            if (parse_yesno (version.IncludeMaximum))
+                attributes |= UpgradeAttribute.VERSION_MAX_INCLUSIVE;
+
             db.table_upgrade.add (get_uuid (upgrade.Id), version.Minimum, version.Maximum, attributes, 
version.Property);
 
             secureProperties += version.Property;
diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala
index 014eb6f..6b9722d 100644
--- a/tools/wixl/wix.vala
+++ b/tools/wixl/wix.vala
@@ -939,6 +939,7 @@ namespace Wixl {
         public string Maximum { get; set; }
         public string IncludeMinimum { get; set; }
         public string IncludeMaximum { get; set; }
+        public string MigrateFeatures { get; set; }
         public string OnlyDetect { get; set; }
         public string Property { get; set; }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]