diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-04-12 05:16:20 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-04-12 05:17:19 +0200 |
commit | 7c555f67e8a3e55c980882679359ae1ee7bf31ae (patch) | |
tree | a176c686907ddf1fd8a9c9e91eeaada5d3a235f6 /tools | |
parent | 407f3ce42c49d95c4795b4b7e89c47cf4e314bcb (diff) | |
download | msitools-7c555f67e8a3e55c980882679359ae1ee7bf31ae.tar.gz msitools-7c555f67e8a3e55c980882679359ae1ee7bf31ae.tar.xz msitools-7c555f67e8a3e55c980882679359ae1ee7bf31ae.zip |
wixl: set summay template for specified arch
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wixl/msi.vala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala index f6c9f58..4577562 100644 --- a/tools/wixl/msi.vala +++ b/tools/wixl/msi.vala @@ -718,11 +718,19 @@ namespace Wixl { return 200; } + string get_arch_template () { + if (arch == Arch.X86) + return "Intel"; + else + return "x64"; + } + construct { info = new MsiSummaryInfo (); try { info.set_property (Libmsi.Property.TITLE, "Installation Database"); - info.set_property (Libmsi.Property.TEMPLATE, "Intel;1033"); + info.set_property (Libmsi.Property.TEMPLATE, + "%s;1033".printf (get_arch_template ())); info.set_property (Libmsi.Property.KEYWORDS, "Installer"); info.set_property (Libmsi.Property.CODEPAGE, 1252); info.set_property (Libmsi.Property.UUID, get_uuid ("*")); |