diff options
author | Rob Mensching <rob@firegiant.com> | 2024-01-11 18:26:20 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-03-06 18:03:38 -0800 |
commit | 0d3d54992104288e9ee0c834d0b96e8502fd2d42 (patch) | |
tree | 9efa49c4983cd2ba1becab64bd1f2faccac88acf /src/ext/Bal/wixext/Symbols | |
parent | 2824298d9dd817a47527c920363556b54ead5d5d (diff) | |
download | wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.gz wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.tar.bz2 wix-0d3d54992104288e9ee0c834d0b96e8502fd2d42.zip |
Move the BootstrapperApplication out of proc
Diffstat (limited to 'src/ext/Bal/wixext/Symbols')
8 files changed, 148 insertions, 170 deletions
diff --git a/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs b/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs index 5229f278..5e9fb936 100644 --- a/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs +++ b/src/ext/Bal/wixext/Symbols/BalSymbolDefinitions.cs | |||
@@ -13,11 +13,11 @@ namespace WixToolset.Bal | |||
13 | WixBalCondition, | 13 | WixBalCondition, |
14 | WixBalPackageInfo, | 14 | WixBalPackageInfo, |
15 | WixDncOptions, | 15 | WixDncOptions, |
16 | WixMbaPrereqInformation, | 16 | WixPrereqInformation, |
17 | WixStdbaCommandLine, | 17 | WixStdbaCommandLine, |
18 | WixStdbaOptions, | 18 | WixStdbaOptions, |
19 | WixStdbaOverridableVariable, | 19 | WixStdbaOverridableVariable, |
20 | WixMbaPrereqOptions, | 20 | WixPrereqOptions, |
21 | WixBalBootstrapperApplication, | 21 | WixBalBootstrapperApplication, |
22 | } | 22 | } |
23 | 23 | ||
@@ -37,8 +37,10 @@ namespace WixToolset.Bal | |||
37 | { | 37 | { |
38 | switch (type) | 38 | switch (type) |
39 | { | 39 | { |
40 | #pragma warning disable 0612 // obsolete | ||
40 | case BalSymbolDefinitionType.WixBalBAFactoryAssembly: | 41 | case BalSymbolDefinitionType.WixBalBAFactoryAssembly: |
41 | return BalSymbolDefinitions.WixBalBAFactoryAssembly; | 42 | return BalSymbolDefinitions.WixBalBAFactoryAssembly; |
43 | #pragma warning restore 0612 | ||
42 | 44 | ||
43 | case BalSymbolDefinitionType.WixBalBAFunctions: | 45 | case BalSymbolDefinitionType.WixBalBAFunctions: |
44 | return BalSymbolDefinitions.WixBalBAFunctions; | 46 | return BalSymbolDefinitions.WixBalBAFunctions; |
@@ -49,11 +51,8 @@ namespace WixToolset.Bal | |||
49 | case BalSymbolDefinitionType.WixBalPackageInfo: | 51 | case BalSymbolDefinitionType.WixBalPackageInfo: |
50 | return BalSymbolDefinitions.WixBalPackageInfo; | 52 | return BalSymbolDefinitions.WixBalPackageInfo; |
51 | 53 | ||
52 | case BalSymbolDefinitionType.WixDncOptions: | 54 | case BalSymbolDefinitionType.WixPrereqInformation: |
53 | return BalSymbolDefinitions.WixDncOptions; | 55 | return BalSymbolDefinitions.WixPrereqInformation; |
54 | |||
55 | case BalSymbolDefinitionType.WixMbaPrereqInformation: | ||
56 | return BalSymbolDefinitions.WixMbaPrereqInformation; | ||
57 | 56 | ||
58 | case BalSymbolDefinitionType.WixStdbaCommandLine: | 57 | case BalSymbolDefinitionType.WixStdbaCommandLine: |
59 | return BalSymbolDefinitions.WixStdbaCommandLine; | 58 | return BalSymbolDefinitions.WixStdbaCommandLine; |
@@ -64,8 +63,8 @@ namespace WixToolset.Bal | |||
64 | case BalSymbolDefinitionType.WixStdbaOverridableVariable: | 63 | case BalSymbolDefinitionType.WixStdbaOverridableVariable: |
65 | return BalSymbolDefinitions.WixStdbaOverridableVariable; | 64 | return BalSymbolDefinitions.WixStdbaOverridableVariable; |
66 | 65 | ||
67 | case BalSymbolDefinitionType.WixMbaPrereqOptions: | 66 | case BalSymbolDefinitionType.WixPrereqOptions: |
68 | return BalSymbolDefinitions.WixMbaPrereqOptions; | 67 | return BalSymbolDefinitions.WixPrereqOptions; |
69 | 68 | ||
70 | case BalSymbolDefinitionType.WixBalBootstrapperApplication: | 69 | case BalSymbolDefinitionType.WixBalBootstrapperApplication: |
71 | return BalSymbolDefinitions.WixBalBootstrapperApplication; | 70 | return BalSymbolDefinitions.WixBalBootstrapperApplication; |
@@ -77,16 +76,17 @@ namespace WixToolset.Bal | |||
77 | 76 | ||
78 | static BalSymbolDefinitions() | 77 | static BalSymbolDefinitions() |
79 | { | 78 | { |
79 | #pragma warning disable 0612 // obsolete | ||
80 | WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 80 | WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
81 | #pragma warning restore 0612 | ||
81 | WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 82 | WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
82 | WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 83 | WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
83 | WixBalPackageInfo.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 84 | WixBalPackageInfo.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
84 | WixDncOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 85 | WixPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
85 | WixMbaPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | ||
86 | WixStdbaCommandLine.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 86 | WixStdbaCommandLine.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
87 | WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 87 | WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
88 | WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 88 | WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
89 | WixMbaPrereqOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); | 89 | WixPrereqOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); |
90 | } | 90 | } |
91 | } | 91 | } |
92 | } | 92 | } |
diff --git a/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs index 52042e4c..3ce535a3 100644 --- a/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs +++ b/src/ext/Bal/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs | |||
@@ -2,11 +2,13 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Bal | 3 | namespace WixToolset.Bal |
4 | { | 4 | { |
5 | using System; | ||
5 | using WixToolset.Data; | 6 | using WixToolset.Data; |
6 | using WixToolset.Bal.Symbols; | 7 | using WixToolset.Bal.Symbols; |
7 | 8 | ||
8 | public static partial class BalSymbolDefinitions | 9 | public static partial class BalSymbolDefinitions |
9 | { | 10 | { |
11 | [Obsolete] | ||
10 | public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition( | 12 | public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition( |
11 | BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(), | 13 | BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(), |
12 | new[] | 14 | new[] |
@@ -20,14 +22,17 @@ namespace WixToolset.Bal | |||
20 | 22 | ||
21 | namespace WixToolset.Bal.Symbols | 23 | namespace WixToolset.Bal.Symbols |
22 | { | 24 | { |
25 | using System; | ||
23 | using WixToolset.Data; | 26 | using WixToolset.Data; |
24 | 27 | ||
28 | [Obsolete] | ||
25 | public enum WixBalBAFactorySymbolFields | 29 | public enum WixBalBAFactorySymbolFields |
26 | { | 30 | { |
27 | PayloadId, | 31 | PayloadId, |
28 | FilePath, | 32 | FilePath, |
29 | } | 33 | } |
30 | 34 | ||
35 | [Obsolete] | ||
31 | public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol | 36 | public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol |
32 | { | 37 | { |
33 | public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null) | 38 | public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null) |
@@ -52,4 +57,4 @@ namespace WixToolset.Bal.Symbols | |||
52 | set => this.Set((int)WixBalBAFactorySymbolFields.FilePath, value); | 57 | set => this.Set((int)WixBalBAFactorySymbolFields.FilePath, value); |
53 | } | 58 | } |
54 | } | 59 | } |
55 | } \ No newline at end of file | 60 | } |
diff --git a/src/ext/Bal/wixext/Symbols/WixBalBootstrapperApplicationSymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalBootstrapperApplicationSymbol.cs index 7096930d..47e930c2 100644 --- a/src/ext/Bal/wixext/Symbols/WixBalBootstrapperApplicationSymbol.cs +++ b/src/ext/Bal/wixext/Symbols/WixBalBootstrapperApplicationSymbol.cs | |||
@@ -19,15 +19,19 @@ namespace WixToolset.Bal | |||
19 | 19 | ||
20 | namespace WixToolset.Bal.Symbols | 20 | namespace WixToolset.Bal.Symbols |
21 | { | 21 | { |
22 | using System; | ||
22 | using WixToolset.Data; | 23 | using WixToolset.Data; |
23 | 24 | ||
24 | public enum WixBalBootstrapperApplicationType | 25 | public enum WixBalBootstrapperApplicationType |
25 | { | 26 | { |
26 | Unknown, | 27 | Unknown, |
27 | Standard, | 28 | Standard, |
29 | [Obsolete] | ||
28 | ManagedHost, | 30 | ManagedHost, |
31 | [Obsolete] | ||
29 | DotNetCoreHost, | 32 | DotNetCoreHost, |
30 | InternalUi, | 33 | InternalUi, |
34 | Prerequisite, | ||
31 | } | 35 | } |
32 | 36 | ||
33 | public enum WixBalBootstrapperApplicationSymbolFields | 37 | public enum WixBalBootstrapperApplicationSymbolFields |
diff --git a/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs deleted file mode 100644 index b9a41c21..00000000 --- a/src/ext/Bal/wixext/Symbols/WixDncOptionsSymbol.cs +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
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 deleted file mode 100644 index e4d78da0..00000000 --- a/src/ext/Bal/wixext/Symbols/WixMbaPrereqInformationSymbol.cs +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
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/WixMbaPrereqOptionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixMbaPrereqOptionsSymbol.cs deleted file mode 100644 index 66374579..00000000 --- a/src/ext/Bal/wixext/Symbols/WixMbaPrereqOptionsSymbol.cs +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
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 WixMbaPrereqOptions = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixMbaPrereqOptions.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixMbaPrereqOptionsSymbolFields.AlwaysInstallPrereqs), IntermediateFieldType.Number), | ||
15 | }, | ||
16 | typeof(WixMbaPrereqOptionsSymbol)); | ||
17 | } | ||
18 | } | ||
19 | |||
20 | namespace WixToolset.Bal.Symbols | ||
21 | { | ||
22 | using WixToolset.Data; | ||
23 | |||
24 | public enum WixMbaPrereqOptionsSymbolFields | ||
25 | { | ||
26 | AlwaysInstallPrereqs, | ||
27 | } | ||
28 | |||
29 | public class WixMbaPrereqOptionsSymbol : IntermediateSymbol | ||
30 | { | ||
31 | public WixMbaPrereqOptionsSymbol() : base(BalSymbolDefinitions.WixMbaPrereqOptions, null, null) | ||
32 | { | ||
33 | } | ||
34 | |||
35 | public WixMbaPrereqOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixMbaPrereqOptions, sourceLineNumber, id) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public IntermediateField this[WixMbaPrereqOptionsSymbolFields index] => this.Fields[(int)index]; | ||
40 | |||
41 | public int AlwaysInstallPrereqs | ||
42 | { | ||
43 | get => this.Fields[(int)WixMbaPrereqOptionsSymbolFields.AlwaysInstallPrereqs].AsNumber(); | ||
44 | set => this.Set((int)WixMbaPrereqOptionsSymbolFields.AlwaysInstallPrereqs, value); | ||
45 | } | ||
46 | } | ||
47 | } | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixPrereqInformationSymbol.cs b/src/ext/Bal/wixext/Symbols/WixPrereqInformationSymbol.cs new file mode 100644 index 00000000..4b5e301e --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixPrereqInformationSymbol.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 WixPrereqInformation = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixPrereqInformation.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixPrereqInformationSymbolFields.PackageId), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixPrereqInformationSymbolFields.LicenseFile), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(WixPrereqInformationSymbolFields.LicenseUrl), IntermediateFieldType.String), | ||
17 | }, | ||
18 | typeof(WixPrereqInformationSymbol)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.Bal.Symbols | ||
23 | { | ||
24 | using WixToolset.Data; | ||
25 | |||
26 | public enum WixPrereqInformationSymbolFields | ||
27 | { | ||
28 | PackageId, | ||
29 | LicenseFile, | ||
30 | LicenseUrl, | ||
31 | } | ||
32 | |||
33 | public class WixPrereqInformationSymbol : IntermediateSymbol | ||
34 | { | ||
35 | public WixPrereqInformationSymbol() : base(BalSymbolDefinitions.WixPrereqInformation, null, null) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public WixPrereqInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixPrereqInformation, sourceLineNumber, id) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IntermediateField this[WixPrereqInformationSymbolFields index] => this.Fields[(int)index]; | ||
44 | |||
45 | public string PackageId | ||
46 | { | ||
47 | get => this.Fields[(int)WixPrereqInformationSymbolFields.PackageId].AsString(); | ||
48 | set => this.Set((int)WixPrereqInformationSymbolFields.PackageId, value); | ||
49 | } | ||
50 | |||
51 | public string LicenseFile | ||
52 | { | ||
53 | get => this.Fields[(int)WixPrereqInformationSymbolFields.LicenseFile].AsString(); | ||
54 | set => this.Set((int)WixPrereqInformationSymbolFields.LicenseFile, value); | ||
55 | } | ||
56 | |||
57 | public string LicenseUrl | ||
58 | { | ||
59 | get => this.Fields[(int)WixPrereqInformationSymbolFields.LicenseUrl].AsString(); | ||
60 | set => this.Set((int)WixPrereqInformationSymbolFields.LicenseUrl, value); | ||
61 | } | ||
62 | } | ||
63 | } | ||
diff --git a/src/ext/Bal/wixext/Symbols/WixPrereqOptionsSymbol.cs b/src/ext/Bal/wixext/Symbols/WixPrereqOptionsSymbol.cs new file mode 100644 index 00000000..a351d7da --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixPrereqOptionsSymbol.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 WixPrereqOptions = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixPrereqOptions.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixPrereqOptionsSymbolFields.Primary), IntermediateFieldType.Number), | ||
15 | new IntermediateFieldDefinition(nameof(WixPrereqOptionsSymbolFields.HandleHelp), IntermediateFieldType.Number), | ||
16 | new IntermediateFieldDefinition(nameof(WixPrereqOptionsSymbolFields.HandleLayout), IntermediateFieldType.Number), | ||
17 | }, | ||
18 | typeof(WixPrereqOptionsSymbol)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.Bal.Symbols | ||
23 | { | ||
24 | using WixToolset.Data; | ||
25 | |||
26 | public enum WixPrereqOptionsSymbolFields | ||
27 | { | ||
28 | Primary, | ||
29 | HandleHelp, | ||
30 | HandleLayout, | ||
31 | } | ||
32 | |||
33 | public class WixPrereqOptionsSymbol : IntermediateSymbol | ||
34 | { | ||
35 | public WixPrereqOptionsSymbol() : base(BalSymbolDefinitions.WixPrereqOptions, null, null) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public WixPrereqOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixPrereqOptions, sourceLineNumber, id) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IntermediateField this[WixPrereqOptionsSymbolFields index] => this.Fields[(int)index]; | ||
44 | |||
45 | public int Primary | ||
46 | { | ||
47 | get => this.Fields[(int)WixPrereqOptionsSymbolFields.Primary].AsNumber(); | ||
48 | set => this.Set((int)WixPrereqOptionsSymbolFields.Primary, value); | ||
49 | } | ||
50 | |||
51 | public int? HandleHelp | ||
52 | { | ||
53 | get => (int?)this.Fields[(int)WixPrereqOptionsSymbolFields.HandleHelp]; | ||
54 | set => this.Set((int)WixPrereqOptionsSymbolFields.HandleHelp, value); | ||
55 | } | ||
56 | |||
57 | public int? HandleLayout | ||
58 | { | ||
59 | get => (int?)this.Fields[(int)WixPrereqOptionsSymbolFields.HandleLayout]; | ||
60 | set => this.Set((int)WixPrereqOptionsSymbolFields.HandleLayout, value); | ||
61 | } | ||
62 | } | ||
63 | } | ||