summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-05-16 01:52:15 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-05-16 02:38:44 +0200
commitfe9a3a12d883917e6202c71210c1701676b44213 (patch)
treea46315fb7a4e50a548ede8798dbd054938a17957
parentdc413451352321ae17a6b893417bdfbf3bcf8393 (diff)
downloadmsitools-fe9a3a12d883917e6202c71210c1701676b44213.tar.gz
msitools-fe9a3a12d883917e6202c71210c1701676b44213.tar.xz
msitools-fe9a3a12d883917e6202c71210c1701676b44213.zip
wixl: add ExtendedType to CustomAction
-rw-r--r--tools/wixl/msi.vala9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/wixl/msi.vala b/tools/wixl/msi.vala
index d11a357..f566ca8 100644
--- a/tools/wixl/msi.vala
+++ b/tools/wixl/msi.vala
@@ -575,15 +575,16 @@ namespace Wixl {
static construct {
name = "CustomAction";
sql_create = "CREATE TABLE `CustomAction` (`Action` CHAR(72) NOT NULL, `Type` INT NOT NULL, `Source` CHAR(72), `Target` CHAR(255), `ExtendedType` LONG PRIMARY KEY `Action`)";
- sql_insert = "INSERT INTO `CustomAction` (`Action`, `Type`, `Source`, `Target`) VALUES (?, ?, ?, ?)";
+ sql_insert = "INSERT INTO `CustomAction` (`Action`, `Type`, `Source`, `Target`, `ExtendedType`) VALUES (?, ?, ?, ?, ?)";
}
- public void add (string Action, int Type, string Source, string Target) throws GLib.Error {
- var rec = new Libmsi.Record (4);
+ public void add (string Action, int Type, string Source, string Target, int? ExtendedType = null) throws GLib.Error {
+ var rec = new Libmsi.Record (5);
if (!rec.set_string (1, Action) ||
!rec.set_int (2, Type) ||
!rec.set_string (3, Source) ||
- !rec.set_string (4, Target))
+ !rec.set_string (4, Target) ||
+ (ExtendedType != null && !rec.set_int (5, ExtendedType)))
throw new Wixl.Error.FAILED ("failed to add record");
records.append (rec);