From 7c555f67e8a3e55c980882679359ae1ee7bf31ae Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Fri, 12 Apr 2013 05:16:20 +0200 Subject: wixl: set summay template for specified arch --- tools/wixl/msi.vala | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools/wixl') 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 ("*")); -- cgit