diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-07-11 18:21:45 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-07-11 18:26:27 +0200 |
commit | fe1ff88578970535ecbf179efef5e15affd54070 (patch) | |
tree | f23a389ad5e260d68d2b0246a4a790383185b0b3 | |
parent | ab926e5224dafc3d9f79283e6207930357dc2cae (diff) | |
download | msitools-fe1ff88578970535ecbf179efef5e15affd54070.tar.gz msitools-fe1ff88578970535ecbf179efef5e15affd54070.tar.xz msitools-fe1ff88578970535ecbf179efef5e15affd54070.zip |
wixl: add default msi comment
-rw-r--r-- | tools/wixl/builder.vala | 2 | ||||
-rw-r--r-- | 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 { |