summaryrefslogtreecommitdiffstats
path: root/tools/wixl/msi.vala
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-04-12 03:48:39 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-04-12 04:07:04 +0200
commit0a3d75677ffbb1164f29d22b6c4d866bb9920246 (patch)
treedc47f41504136987e1c5b62b1b0b0114ecc9da0d /tools/wixl/msi.vala
parent7d50947ca464d4cbad135919385cde86fd2c4d69 (diff)
downloadmsitools-0a3d75677ffbb1164f29d22b6c4d866bb9920246.tar.gz
msitools-0a3d75677ffbb1164f29d22b6c4d866bb9920246.tar.xz
msitools-0a3d75677ffbb1164f29d22b6c4d866bb9920246.zip
Set installer version depending on arch
Diffstat (limited to 'tools/wixl/msi.vala')
-rw-r--r--tools/wixl/msi.vala15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala
index ed3c949..f1de726 100644
--- a/tools/wixl/msi.vala
+++ b/tools/wixl/msi.vala
@@ -673,6 +673,8 @@ namespace Wixl {
}
class MsiDatabase: Object {
+ public Arch arch { get; construct set; }
+
public MsiSummaryInfo info;
public MsiTableProperty table_property;
public MsiTableIcon table_icon;
@@ -701,6 +703,13 @@ namespace Wixl {
public HashTable<string, MsiTable> tables;
+ int get_default_version () {
+ if (arch == Arch.X86)
+ return 100;
+ else
+ return 200;
+ }
+
construct {
info = new MsiSummaryInfo ();
try {
@@ -713,7 +722,7 @@ namespace Wixl {
time_to_filetime (now ()));
info.set_property (Libmsi.Property.LASTSAVED_TM,
time_to_filetime (now ()));
- info.set_property (Libmsi.Property.VERSION, 100);
+ info.set_property (Libmsi.Property.VERSION, get_default_version ());
info.set_property (Libmsi.Property.SOURCE, 2);
info.set_property (Libmsi.Property.APPNAME, Config.PACKAGE_STRING);
info.set_property (Libmsi.Property.SECURITY, 2);
@@ -779,8 +788,8 @@ namespace Wixl {
}
}
- public MsiDatabase () {
- // empty ctor
+ public MsiDatabase (Arch arch) {
+ Object (arch: arch);
}
public void build (string filename) throws GLib.Error {