diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-03 15:55:48 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 15:55:48 -0700 |
commit | ba7bab476501c16e437b0aee71c1be02c3dda176 (patch) | |
tree | 814fba485c29a7dfe1adb396169e27ed641ef9a3 /src/ext/Bal/wixext/Symbols | |
parent | 14987a72cc1a3493ca8f80693d273352fc314bd9 (diff) | |
download | wix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.gz wix-ba7bab476501c16e437b0aee71c1be02c3dda176.tar.bz2 wix-ba7bab476501c16e437b0aee71c1be02c3dda176.zip |
Move Bal.wixext into ext
Diffstat (limited to 'src/ext/Bal/wixext/Symbols')
9 files changed, 528 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs b/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs new file mode 100644 index 00000000..90865621 --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs | |||
@@ -0,0 +1,80 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using System; | ||
6 | using WixToolset.Data; | ||
7 | using WixToolset.Data.Burn; | ||
8 | |||
9 | public enum BalSymbolDefinitionType | ||
10 | { | ||
11 | WixBalBAFactoryAssembly, | ||
12 | WixBalBAFunctions, | ||
13 | WixBalCondition, | ||
14 | WixBalPackageInfo, | ||
15 | WixDncOptions, | ||
16 | WixMbaPrereqInformation, | ||
17 | WixStdbaOptions, | ||
18 | WixStdbaOverridableVariable, | ||
19 | } | ||
20 | |||
21 | public static partial class BalSymbolDefinitions | ||
22 | { | ||
23 | public static readonly Version Version = new Version("4.0.0"); | ||
24 | |||
25 | public static IntermediateSymbolDefinition ByName(string name) | ||
26 | { | ||
27 | if (!Enum.TryParse(name, out BalSymbolDefinitionType type)) | ||
28 | { | ||
29 | return null; | ||
30 | } | ||
31 | |||
32 | return ByType(type); | ||
33 | } | ||
34 | |||
35 | public static IntermediateSymbolDefinition ByType(BalSymbolDefinitionType type) | ||
36 | { | ||
37 | switch (type) | ||
38 | { | ||
39 | case BalSymbolDefinitionType.WixBalBAFactoryAssembly: | ||
40 | return BalSymbolDefinitions.WixBalBAFactoryAssembly; | ||
41 | |||
42 | case BalSymbolDefinitionType.WixBalBAFunctions: | ||
43 | return BalSymbolDefinitions.WixBalBAFunctions; | ||
44 | |||
45 | case BalSymbolDefinitionType.WixBalCondition: | ||
46 | return BalSymbolDefinitions.WixBalCondition; | ||
47 | |||
48 | case BalSymbolDefinitionType.WixBalPackageInfo: | ||
49 | return BalSymbolDefinitions.WixBalPackageInfo; | ||
50 | |||
51 | case BalSymbolDefinitionType.WixDncOptions: | ||
52 | return BalSymbolDefinitions.WixDncOptions; | ||
53 | |||
54 | case BalSymbolDefinitionType.WixMbaPrereqInformation: | ||
55 | return BalSymbolDefinitions.WixMbaPrereqInformation; | ||
56 | |||
57 | case BalSymbolDefinitionType.WixStdbaOptions: | ||
58 | return BalSymbolDefinitions.WixStdbaOptions; | ||
59 | |||
60 | case BalSymbolDefinitionType.WixStdbaOverridableVariable: | ||
61 | return BalSymbolDefinitions.WixStdbaOverridableVariable; | ||
62 | |||
63 | default: | ||
64 | throw new ArgumentOutOfRangeException(nameof(type)); | ||
65 | } | ||
66 | } | ||
67 | |||
68 | static BalSymbolDefinitions() | ||
69 | { | ||
70 | WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
71 | WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
72 | WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
73 | WixBalPackageInfo.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
74 | WixDncOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
75 | WixMbaPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
76 | WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
77 | WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
78 | } | ||
79 | } | ||
80 | } | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs new file mode 100644 index 00000000..52042e4c --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs | |||
@@ -0,0 +1,55 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.PayloadId), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.FilePath), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(WixBalBAFactoryAssemblySymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Bal.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public enum WixBalBAFactorySymbolFields | ||
26 | { | ||
27 | PayloadId, | ||
28 | FilePath, | ||
29 | } | ||
30 | |||
31 | public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol | ||
32 | { | ||
33 | public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public WixBalBAFactoryAssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[WixBalBAFactorySymbolFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string PayloadId | ||
44 | { | ||
45 | get => this.Fields[(int)WixBalBAFactorySymbolFields.PayloadId].AsString(); | ||
46 | set => this.Set((int)WixBalBAFactorySymbolFields.PayloadId, value); | ||
47 | } | ||
48 | |||
49 | public string FilePath | ||
50 | { | ||
51 | get => this.Fields[(int)WixBalBAFactorySymbolFields.FilePath].AsString(); | ||
52 | set => this.Set((int)WixBalBAFactorySymbolFields.FilePath, value); | ||
53 | } | ||
54 | } | ||
55 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixBalBAFunctionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalBAFunctionsSymbol.cs new file mode 100644 index 00000000..19c7602d --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixBalBAFunctionsSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixBalBAFunctions = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixBalBAFunctions.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalBAFunctionsSymbolFields.PayloadId), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(WixBalBAFunctionsSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixBalBAFunctionsSymbolFields | ||
25 | { | ||
26 | PayloadId, | ||
27 | } | ||
28 | |||
29 | public class WixBalBAFunctionsSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public WixBalBAFunctionsSymbol() : base(BalSymbolDefinitions.WixBalBAFunctions, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixBalBAFunctionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFunctions, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixBalBAFunctionsSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string PayloadId | ||
42 | { | ||
43 | get => this.Fields[(int)WixBalBAFunctionsSymbolFields.PayloadId].AsString(); | ||
44 | set => this.Set((int)WixBalBAFunctionsSymbolFields.PayloadId, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixBalConditionSymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalConditionSymbol.cs new file mode 100644 index 00000000..c2527fbc --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixBalConditionSymbol.cs | |||
@@ -0,0 +1,55 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixBalCondition = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixBalCondition.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Condition), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Message), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(WixBalConditionSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Bal.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public enum WixBalConditionSymbolFields | ||
26 | { | ||
27 | Condition, | ||
28 | Message, | ||
29 | } | ||
30 | |||
31 | public class WixBalConditionSymbol : IntermediateSymbol | ||
32 | { | ||
33 | public WixBalConditionSymbol() : base(BalSymbolDefinitions.WixBalCondition, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public WixBalConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalCondition, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[WixBalConditionSymbolFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string Condition | ||
44 | { | ||
45 | get => this.Fields[(int)WixBalConditionSymbolFields.Condition].AsString(); | ||
46 | set => this.Set((int)WixBalConditionSymbolFields.Condition, value); | ||
47 | } | ||
48 | |||
49 | public string Message | ||
50 | { | ||
51 | get => this.Fields[(int)WixBalConditionSymbolFields.Message].AsString(); | ||
52 | set => this.Set((int)WixBalConditionSymbolFields.Message, value); | ||
53 | } | ||
54 | } | ||
55 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs new file mode 100644 index 00000000..b09cb191 --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs | |||
@@ -0,0 +1,55 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixBalPackageInfo = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixBalPackageInfo.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.PackageId), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.DisplayInternalUICondition), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(WixBalPackageInfoSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Bal.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public enum WixBalPackageInfoSymbolFields | ||
26 | { | ||
27 | PackageId, | ||
28 | DisplayInternalUICondition, | ||
29 | } | ||
30 | |||
31 | public class WixBalPackageInfoSymbol : IntermediateSymbol | ||
32 | { | ||
33 | public WixBalPackageInfoSymbol() : base(BalSymbolDefinitions.WixBalPackageInfo, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public WixBalPackageInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalPackageInfo, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[WixBalPackageInfoSymbolFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string PackageId | ||
44 | { | ||
45 | get => this.Fields[(int)WixBalPackageInfoSymbolFields.PackageId].AsString(); | ||
46 | set => this.Set((int)WixBalPackageInfoSymbolFields.PackageId, value); | ||
47 | } | ||
48 | |||
49 | public string DisplayInternalUICondition | ||
50 | { | ||
51 | get => this.Fields[(int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition].AsString(); | ||
52 | set => this.Set((int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition, value); | ||
53 | } | ||
54 | } | ||
55 | } | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs new file mode 100644 index 00000000..b9a41c21 --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixDncOptions = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixDncOptions.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixDncOptionsSymbolFields.SelfContainedDeployment), IntermediateFieldType.Number), | ||
15 | }, | ||
16 | typeof(WixDncOptionsSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixDncOptionsSymbolFields | ||
25 | { | ||
26 | SelfContainedDeployment, | ||
27 | } | ||
28 | |||
29 | public class WixDncOptionsSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public WixDncOptionsSymbol() : base(BalSymbolDefinitions.WixDncOptions, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixDncOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixDncOptions, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixDncOptionsSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public int SelfContainedDeployment | ||
42 | { | ||
43 | get => this.Fields[(int)WixDncOptionsSymbolFields.SelfContainedDeployment].AsNumber(); | ||
44 | set => this.Set((int)WixDncOptionsSymbolFields.SelfContainedDeployment, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixMbaPrereqInformationSymbol.cs b/src/ext/Bal/wixext/Symbols/WixMbaPrereqInformationSymbol.cs new file mode 100644 index 00000000..e4d78da0 --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixMbaPrereqInformationSymbol.cs | |||
@@ -0,0 +1,63 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixMbaPrereqInformation = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixMbaPrereqInformation.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.PackageId), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseFile), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseUrl), IntermediateFieldType.String), | ||
17 | }, | ||
18 | typeof(WixMbaPrereqInformationSymbol)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.Bal.Symbols | ||
23 | { | ||
24 | using WixToolset.Data; | ||
25 | |||
26 | public enum WixMbaPrereqInformationSymbolFields | ||
27 | { | ||
28 | PackageId, | ||
29 | LicenseFile, | ||
30 | LicenseUrl, | ||
31 | } | ||
32 | |||
33 | public class WixMbaPrereqInformationSymbol : IntermediateSymbol | ||
34 | { | ||
35 | public WixMbaPrereqInformationSymbol() : base(BalSymbolDefinitions.WixMbaPrereqInformation, null, null) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public WixMbaPrereqInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixMbaPrereqInformation, sourceLineNumber, id) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IntermediateField this[WixMbaPrereqInformationSymbolFields index] => this.Fields[(int)index]; | ||
44 | |||
45 | public string PackageId | ||
46 | { | ||
47 | get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.PackageId].AsString(); | ||
48 | set => this.Set((int)WixMbaPrereqInformationSymbolFields.PackageId, value); | ||
49 | } | ||
50 | |||
51 | public string LicenseFile | ||
52 | { | ||
53 | get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseFile].AsString(); | ||
54 | set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseFile, value); | ||
55 | } | ||
56 | |||
57 | public string LicenseUrl | ||
58 | { | ||
59 | get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseUrl].AsString(); | ||
60 | set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseUrl, value); | ||
61 | } | ||
62 | } | ||
63 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixStdbaOptionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixStdbaOptionsSymbol.cs new file mode 100644 index 00000000..cb2694da --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixStdbaOptionsSymbol.cs | |||
@@ -0,0 +1,79 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixStdbaOptions = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixStdbaOptions.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressOptionsUI), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressDowngradeFailure), IntermediateFieldType.Number), | ||
16 | new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressRepair), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.ShowVersion), IntermediateFieldType.Number), | ||
18 | new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SupportCacheOnly), IntermediateFieldType.Number), | ||
19 | }, | ||
20 | typeof(WixStdbaOptionsSymbol)); | ||
21 | } | ||
22 | } | ||
23 | |||
24 | namespace WixToolset.Bal.Symbols | ||
25 | { | ||
26 | using WixToolset.Data; | ||
27 | |||
28 | public enum WixStdbaOptionsSymbolFields | ||
29 | { | ||
30 | SuppressOptionsUI, | ||
31 | SuppressDowngradeFailure, | ||
32 | SuppressRepair, | ||
33 | ShowVersion, | ||
34 | SupportCacheOnly, | ||
35 | } | ||
36 | |||
37 | public class WixStdbaOptionsSymbol : IntermediateSymbol | ||
38 | { | ||
39 | public WixStdbaOptionsSymbol() : base(BalSymbolDefinitions.WixStdbaOptions, null, null) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public WixStdbaOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOptions, sourceLineNumber, id) | ||
44 | { | ||
45 | } | ||
46 | |||
47 | public IntermediateField this[WixStdbaOptionsSymbolFields index] => this.Fields[(int)index]; | ||
48 | |||
49 | public int SuppressOptionsUI | ||
50 | { | ||
51 | get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressOptionsUI].AsNumber(); | ||
52 | set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressOptionsUI, value); | ||
53 | } | ||
54 | |||
55 | public int SuppressDowngradeFailure | ||
56 | { | ||
57 | get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure].AsNumber(); | ||
58 | set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure, value); | ||
59 | } | ||
60 | |||
61 | public int SuppressRepair | ||
62 | { | ||
63 | get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressRepair].AsNumber(); | ||
64 | set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressRepair, value); | ||
65 | } | ||
66 | |||
67 | public int ShowVersion | ||
68 | { | ||
69 | get => this.Fields[(int)WixStdbaOptionsSymbolFields.ShowVersion].AsNumber(); | ||
70 | set => this.Set((int)WixStdbaOptionsSymbolFields.ShowVersion, value); | ||
71 | } | ||
72 | |||
73 | public int SupportCacheOnly | ||
74 | { | ||
75 | get => this.Fields[(int)WixStdbaOptionsSymbolFields.SupportCacheOnly].AsNumber(); | ||
76 | set => this.Set((int)WixStdbaOptionsSymbolFields.SupportCacheOnly, value); | ||
77 | } | ||
78 | } | ||
79 | } \ No newline at end of file | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs b/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs new file mode 100644 index 00000000..1d84d1aa --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs | |||
@@ -0,0 +1,47 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixStdbaOverridableVariable = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixStdbaOverridableVariable.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixStdbaOverridableVariableSymbolFields.Name), IntermediateFieldType.String), | ||
15 | }, | ||
16 | typeof(WixStdbaOverridableVariableSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixStdbaOverridableVariableSymbolFields | ||
25 | { | ||
26 | Name, | ||
27 | } | ||
28 | |||
29 | public class WixStdbaOverridableVariableSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public WixStdbaOverridableVariableSymbol() : base(BalSymbolDefinitions.WixStdbaOverridableVariable, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixStdbaOverridableVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOverridableVariable, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixStdbaOverridableVariableSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public string Name | ||
42 | { | ||
43 | get => this.Fields[(int)WixStdbaOverridableVariableSymbolFields.Name].AsString(); | ||
44 | set => this.Set((int)WixStdbaOverridableVariableSymbolFields.Name, value); | ||
45 | } | ||
46 | } | ||
47 | } \ No newline at end of file | ||