summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-09 00:32:42 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-01-09 00:32:42 +0100
commit48343917c67aea722459836beb987ae2bfab0078 (patch)
tree93355be67a8a47f9b89ad1bf3cc17921e51bb1ea
parent9342db278c92c5f234137663dfd7d837a8a60d2f (diff)
downloadmsitools-48343917c67aea722459836beb987ae2bfab0078.tar.gz
msitools-48343917c67aea722459836beb987ae2bfab0078.tar.xz
msitools-48343917c67aea722459836beb987ae2bfab0078.zip
Set SecureCustomProperties property
-rw-r--r--src/builder.vala10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/builder.vala b/src/builder.vala
index bc28c8f..3ff2af4 100644
--- a/src/builder.vala
+++ b/src/builder.vala
@@ -186,6 +186,13 @@ namespace Wixl {
}
}
+ string[] secureProperties;
+
+ public void property_update () throws GLib.Error {
+ var prop = string.joinv (";", secureProperties);
+ db.table_property.add ("SecureCustomProperties", prop);
+ }
+
public MsiDatabase build () throws GLib.Error {
db = new MsiDatabase ();
@@ -195,6 +202,7 @@ namespace Wixl {
}
root = null;
+ property_update ();
shortcut_target ();
sequence_actions ();
build_cabinet ();
@@ -526,6 +534,8 @@ namespace Wixl {
attributes |= UpgradeAttribute.VERSION_MIN_INCLUSIVE;
db.table_upgrade.add (get_uuid (upgrade.Id), version.Minimum, version.Maximum, attributes, version.Property);
+
+ secureProperties += version.Property;
}
public override void visit_remove_existing_products (WixRemoveExistingProducts remove) throws GLib.Error {