From fe1ff88578970535ecbf179efef5e15affd54070 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 11 Jul 2013 18:21:45 +0200 Subject: wixl: add default msi comment --- tools/wixl/builder.vala | 2 ++ tools/wixl/msi.vala | 8 ++++++++ 2 files changed, 10 insertions(+) (limited to 'tools') 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 { -- cgit