[msitools] wixl: set summay template for specified arch



commit 7c555f67e8a3e55c980882679359ae1ee7bf31ae
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Fri Apr 12 05:16:20 2013 +0200

    wixl: set summay template for specified arch

 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 ("*"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]