diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/CustomActionTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/CustomActionTuple.cs | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/WixToolset.Data/Tuples/CustomActionTuple.cs b/src/WixToolset.Data/Tuples/CustomActionTuple.cs index b2b34df0..1180dab4 100644 --- a/src/WixToolset.Data/Tuples/CustomActionTuple.cs +++ b/src/WixToolset.Data/Tuples/CustomActionTuple.cs | |||
| @@ -2,35 +2,35 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition CustomAction = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition CustomAction = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.CustomAction, | 10 | SymbolDefinitionType.CustomAction, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.ExecutionType), IntermediateFieldType.Number), | 13 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ExecutionType), IntermediateFieldType.Number), |
| 14 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Source), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Source), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.SourceType), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.SourceType), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Target), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Target), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.TargetType), IntermediateFieldType.Number), | 17 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TargetType), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Async), IntermediateFieldType.Bool), | 18 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Async), IntermediateFieldType.Bool), |
| 19 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Hidden), IntermediateFieldType.Bool), | 19 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Hidden), IntermediateFieldType.Bool), |
| 20 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.IgnoreResult), IntermediateFieldType.Bool), | 20 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.IgnoreResult), IntermediateFieldType.Bool), |
| 21 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Impersonate), IntermediateFieldType.Bool), | 21 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Impersonate), IntermediateFieldType.Bool), |
| 22 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.PatchUninstall), IntermediateFieldType.Bool), | 22 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.PatchUninstall), IntermediateFieldType.Bool), |
| 23 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.TSAware), IntermediateFieldType.Bool), | 23 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.TSAware), IntermediateFieldType.Bool), |
| 24 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.Win64), IntermediateFieldType.Bool), | 24 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.Win64), IntermediateFieldType.Bool), |
| 25 | new IntermediateFieldDefinition(nameof(CustomActionTupleFields.ScriptFile), IntermediateFieldType.Path), | 25 | new IntermediateFieldDefinition(nameof(CustomActionSymbolFields.ScriptFile), IntermediateFieldType.Path), |
| 26 | }, | 26 | }, |
| 27 | typeof(CustomActionTuple)); | 27 | typeof(CustomActionSymbol)); |
| 28 | } | 28 | } |
| 29 | } | 29 | } |
| 30 | 30 | ||
| 31 | namespace WixToolset.Data.Tuples | 31 | namespace WixToolset.Data.Symbols |
| 32 | { | 32 | { |
| 33 | public enum CustomActionTupleFields | 33 | public enum CustomActionSymbolFields |
| 34 | { | 34 | { |
| 35 | ExecutionType, | 35 | ExecutionType, |
| 36 | Source, | 36 | Source, |
| @@ -75,94 +75,94 @@ namespace WixToolset.Data.Tuples | |||
| 75 | VBScript = 6, | 75 | VBScript = 6, |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | public class CustomActionTuple : IntermediateTuple | 78 | public class CustomActionSymbol : IntermediateSymbol |
| 79 | { | 79 | { |
| 80 | public CustomActionTuple() : base(TupleDefinitions.CustomAction, null, null) | 80 | public CustomActionSymbol() : base(SymbolDefinitions.CustomAction, null, null) |
| 81 | { | 81 | { |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | public CustomActionTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.CustomAction, sourceLineNumber, id) | 84 | public CustomActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CustomAction, sourceLineNumber, id) |
| 85 | { | 85 | { |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | public IntermediateField this[CustomActionTupleFields index] => this.Fields[(int)index]; | 88 | public IntermediateField this[CustomActionSymbolFields index] => this.Fields[(int)index]; |
| 89 | 89 | ||
| 90 | public CustomActionExecutionType ExecutionType | 90 | public CustomActionExecutionType ExecutionType |
| 91 | { | 91 | { |
| 92 | get => (CustomActionExecutionType)this.Fields[(int)CustomActionTupleFields.ExecutionType].AsNumber(); | 92 | get => (CustomActionExecutionType)this.Fields[(int)CustomActionSymbolFields.ExecutionType].AsNumber(); |
| 93 | set => this.Set((int)CustomActionTupleFields.ExecutionType, (int)value); | 93 | set => this.Set((int)CustomActionSymbolFields.ExecutionType, (int)value); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | public string Source | 96 | public string Source |
| 97 | { | 97 | { |
| 98 | get => (string)this.Fields[(int)CustomActionTupleFields.Source]; | 98 | get => (string)this.Fields[(int)CustomActionSymbolFields.Source]; |
| 99 | set => this.Set((int)CustomActionTupleFields.Source, value); | 99 | set => this.Set((int)CustomActionSymbolFields.Source, value); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | public CustomActionSourceType SourceType | 102 | public CustomActionSourceType SourceType |
| 103 | { | 103 | { |
| 104 | get => (CustomActionSourceType)this.Fields[(int)CustomActionTupleFields.SourceType].AsNumber(); | 104 | get => (CustomActionSourceType)this.Fields[(int)CustomActionSymbolFields.SourceType].AsNumber(); |
| 105 | set => this.Set((int)CustomActionTupleFields.SourceType, (int)value); | 105 | set => this.Set((int)CustomActionSymbolFields.SourceType, (int)value); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | public string Target | 108 | public string Target |
| 109 | { | 109 | { |
| 110 | get => (string)this.Fields[(int)CustomActionTupleFields.Target]; | 110 | get => (string)this.Fields[(int)CustomActionSymbolFields.Target]; |
| 111 | set => this.Set((int)CustomActionTupleFields.Target, value); | 111 | set => this.Set((int)CustomActionSymbolFields.Target, value); |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | public CustomActionTargetType TargetType | 114 | public CustomActionTargetType TargetType |
| 115 | { | 115 | { |
| 116 | get => (CustomActionTargetType)this.Fields[(int)CustomActionTupleFields.TargetType].AsNumber(); | 116 | get => (CustomActionTargetType)this.Fields[(int)CustomActionSymbolFields.TargetType].AsNumber(); |
| 117 | set => this.Set((int)CustomActionTupleFields.TargetType, (int)value); | 117 | set => this.Set((int)CustomActionSymbolFields.TargetType, (int)value); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | public bool Async | 120 | public bool Async |
| 121 | { | 121 | { |
| 122 | get => this.Fields[(int)CustomActionTupleFields.Async].AsBool(); | 122 | get => this.Fields[(int)CustomActionSymbolFields.Async].AsBool(); |
| 123 | set => this.Set((int)CustomActionTupleFields.Async, value); | 123 | set => this.Set((int)CustomActionSymbolFields.Async, value); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | public bool Hidden | 126 | public bool Hidden |
| 127 | { | 127 | { |
| 128 | get => this.Fields[(int)CustomActionTupleFields.Hidden].AsBool(); | 128 | get => this.Fields[(int)CustomActionSymbolFields.Hidden].AsBool(); |
| 129 | set => this.Set((int)CustomActionTupleFields.Hidden, value); | 129 | set => this.Set((int)CustomActionSymbolFields.Hidden, value); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | public bool IgnoreResult | 132 | public bool IgnoreResult |
| 133 | { | 133 | { |
| 134 | get => this.Fields[(int)CustomActionTupleFields.IgnoreResult].AsBool(); | 134 | get => this.Fields[(int)CustomActionSymbolFields.IgnoreResult].AsBool(); |
| 135 | set => this.Set((int)CustomActionTupleFields.IgnoreResult, value); | 135 | set => this.Set((int)CustomActionSymbolFields.IgnoreResult, value); |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | public bool Impersonate | 138 | public bool Impersonate |
| 139 | { | 139 | { |
| 140 | get => this.Fields[(int)CustomActionTupleFields.Impersonate].AsBool(); | 140 | get => this.Fields[(int)CustomActionSymbolFields.Impersonate].AsBool(); |
| 141 | set => this.Set((int)CustomActionTupleFields.Impersonate, value); | 141 | set => this.Set((int)CustomActionSymbolFields.Impersonate, value); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | public bool PatchUninstall | 144 | public bool PatchUninstall |
| 145 | { | 145 | { |
| 146 | get => this.Fields[(int)CustomActionTupleFields.PatchUninstall].AsBool(); | 146 | get => this.Fields[(int)CustomActionSymbolFields.PatchUninstall].AsBool(); |
| 147 | set => this.Set((int)CustomActionTupleFields.PatchUninstall, value); | 147 | set => this.Set((int)CustomActionSymbolFields.PatchUninstall, value); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | public bool TSAware | 150 | public bool TSAware |
| 151 | { | 151 | { |
| 152 | get => this.Fields[(int)CustomActionTupleFields.TSAware].AsBool(); | 152 | get => this.Fields[(int)CustomActionSymbolFields.TSAware].AsBool(); |
| 153 | set => this.Set((int)CustomActionTupleFields.TSAware, value); | 153 | set => this.Set((int)CustomActionSymbolFields.TSAware, value); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | public bool Win64 | 156 | public bool Win64 |
| 157 | { | 157 | { |
| 158 | get => this.Fields[(int)CustomActionTupleFields.Win64].AsBool(); | 158 | get => this.Fields[(int)CustomActionSymbolFields.Win64].AsBool(); |
| 159 | set => this.Set((int)CustomActionTupleFields.Win64, value); | 159 | set => this.Set((int)CustomActionSymbolFields.Win64, value); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | public IntermediateFieldPathValue ScriptFile | 162 | public IntermediateFieldPathValue ScriptFile |
| 163 | { | 163 | { |
| 164 | get => this.Fields[(int)CustomActionTupleFields.ScriptFile].AsPath(); | 164 | get => this.Fields[(int)CustomActionSymbolFields.ScriptFile].AsPath(); |
| 165 | set => this.Set((int)CustomActionTupleFields.ScriptFile, value); | 165 | set => this.Set((int)CustomActionSymbolFields.ScriptFile, value); |
| 166 | } | 166 | } |
| 167 | } | 167 | } |
| 168 | } | 168 | } |
