[msitools] wixl: add default msi comment



commit fe1ff88578970535ecbf179efef5e15affd54070
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Thu Jul 11 18:21:45 2013 +0200

    wixl: add default msi comment

 tools/wixl/builder.vala |    2 ++
 tools/wixl/msi.vala     |    8 ++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index 9c0bc59..f6db67d 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -272,6 +272,8 @@ namespace Wixl {
                 db.info.set_subject (product.Name);
 
             db.info.set_author (product.Manufacturer);
+            if (db.info.get_comments () == null)
+                db.info.set_comments ("This installer database contains the logic and data required to 
install %s.".printf (product.Name));
 
             db.table_property.add ("Manufacturer", product.Manufacturer);
             db.table_property.add ("ProductLanguage", product.Language);
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala
index e2b5490..9c2e40e 100644
--- a/tools/wixl/msi.vala
+++ b/tools/wixl/msi.vala
@@ -740,6 +740,14 @@ namespace Wixl {
         public void set_comments (string value) throws GLib.Error {
             set_property (Libmsi.Property.COMMENTS, value);
         }
+
+        public string? get_comments () {
+            try {
+                return properties.get_string (Libmsi.Property.COMMENTS);
+            } catch (GLib.Error err) {
+                return null;
+            }
+        }
     }
 
     class MsiDatabase: Object {


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