[msitools: 1/2] wixl: Implement SET_PROPERTY custom action
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [msitools: 1/2] wixl: Implement SET_PROPERTY custom action
- Date: Mon, 16 Nov 2020 12:47:17 +0000 (UTC)
commit 12c03162920e4f7f5049d8608f70278a2d951277
Author: Hendrik Eckardt <hendrik eckardt gdata-adan de>
Date: Thu Oct 15 13:23:12 2020 +0200
wixl: Implement SET_PROPERTY custom action
tools/wixl/builder.vala | 4 ++++
tools/wixl/wix.vala | 1 +
2 files changed, 5 insertions(+)
---
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index cccc163..0a47101 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -1081,6 +1081,10 @@ namespace Wixl {
type = CustomActionType.EXE_FILE;
source = action.FileKey;
target = action.ExeCommand;
+ } else if (action.Property != null && action.Value != null) {
+ type = CustomActionType.SET_PROPERTY;
+ source = action.Property;
+ target = action.Value;
} else
throw new Wixl.Error.FAILED ("Unsupported CustomAction");
diff --git a/tools/wixl/wix.vala b/tools/wixl/wix.vala
index 466837b..12af37e 100644
--- a/tools/wixl/wix.vala
+++ b/tools/wixl/wix.vala
@@ -926,6 +926,7 @@ namespace Wixl {
public string DllEntry { get; set; }
public string HideTarget { get; set; }
public string JScriptCall { get; set; }
+ public string Value { get; set; }
public override void accept (WixNodeVisitor visitor) throws GLib.Error {
visitor.visit_custom_action (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]