From 59fa31de1eb64809888e218064a97d417060d110 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 27 Jun 2020 01:38:32 -0700 Subject: The Great Tuple to Symbol File Rename (tm) --- src/wixext/Symbols/BalSymbolDefinitions.cs | 80 ++++++++++++++++++++++ .../Symbols/WixBalBAFactoryAssemblySymbol.cs | 47 +++++++++++++ src/wixext/Symbols/WixBalBAFunctionsSymbol.cs | 47 +++++++++++++ src/wixext/Symbols/WixBalConditionSymbol.cs | 55 +++++++++++++++ src/wixext/Symbols/WixBalPackageInfoSymbol.cs | 55 +++++++++++++++ src/wixext/Symbols/WixDncOptionsSymbol.cs | 47 +++++++++++++ .../Symbols/WixMbaPrereqInformationSymbol.cs | 63 +++++++++++++++++ src/wixext/Symbols/WixStdbaOptionsSymbol.cs | 79 +++++++++++++++++++++ .../Symbols/WixStdbaOverridableVariableSymbol.cs | 47 +++++++++++++ src/wixext/Tuples/BalTupleDefinitions.cs | 80 ---------------------- src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs | 47 ------------- src/wixext/Tuples/WixBalBAFunctionsTuple.cs | 47 ------------- src/wixext/Tuples/WixBalConditionTuple.cs | 55 --------------- src/wixext/Tuples/WixBalPackageInfoTuple.cs | 55 --------------- src/wixext/Tuples/WixDncOptionsTuple.cs | 47 ------------- src/wixext/Tuples/WixMbaPrereqInformationTuple.cs | 63 ----------------- src/wixext/Tuples/WixStdbaOptionsTuple.cs | 79 --------------------- .../Tuples/WixStdbaOverridableVariableTuple.cs | 47 ------------- 18 files changed, 520 insertions(+), 520 deletions(-) create mode 100644 src/wixext/Symbols/BalSymbolDefinitions.cs create mode 100644 src/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs create mode 100644 src/wixext/Symbols/WixBalBAFunctionsSymbol.cs create mode 100644 src/wixext/Symbols/WixBalConditionSymbol.cs create mode 100644 src/wixext/Symbols/WixBalPackageInfoSymbol.cs create mode 100644 src/wixext/Symbols/WixDncOptionsSymbol.cs create mode 100644 src/wixext/Symbols/WixMbaPrereqInformationSymbol.cs create mode 100644 src/wixext/Symbols/WixStdbaOptionsSymbol.cs create mode 100644 src/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs delete mode 100644 src/wixext/Tuples/BalTupleDefinitions.cs delete mode 100644 src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs delete mode 100644 src/wixext/Tuples/WixBalBAFunctionsTuple.cs delete mode 100644 src/wixext/Tuples/WixBalConditionTuple.cs delete mode 100644 src/wixext/Tuples/WixBalPackageInfoTuple.cs delete mode 100644 src/wixext/Tuples/WixDncOptionsTuple.cs delete mode 100644 src/wixext/Tuples/WixMbaPrereqInformationTuple.cs delete mode 100644 src/wixext/Tuples/WixStdbaOptionsTuple.cs delete mode 100644 src/wixext/Tuples/WixStdbaOverridableVariableTuple.cs (limited to 'src') diff --git a/src/wixext/Symbols/BalSymbolDefinitions.cs b/src/wixext/Symbols/BalSymbolDefinitions.cs new file mode 100644 index 00000000..90865621 --- /dev/null +++ b/src/wixext/Symbols/BalSymbolDefinitions.cs @@ -0,0 +1,80 @@ +// 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. + +namespace WixToolset.Bal +{ + using System; + using WixToolset.Data; + using WixToolset.Data.Burn; + + public enum BalSymbolDefinitionType + { + WixBalBAFactoryAssembly, + WixBalBAFunctions, + WixBalCondition, + WixBalPackageInfo, + WixDncOptions, + WixMbaPrereqInformation, + WixStdbaOptions, + WixStdbaOverridableVariable, + } + + public static partial class BalSymbolDefinitions + { + public static readonly Version Version = new Version("4.0.0"); + + public static IntermediateSymbolDefinition ByName(string name) + { + if (!Enum.TryParse(name, out BalSymbolDefinitionType type)) + { + return null; + } + + return ByType(type); + } + + public static IntermediateSymbolDefinition ByType(BalSymbolDefinitionType type) + { + switch (type) + { + case BalSymbolDefinitionType.WixBalBAFactoryAssembly: + return BalSymbolDefinitions.WixBalBAFactoryAssembly; + + case BalSymbolDefinitionType.WixBalBAFunctions: + return BalSymbolDefinitions.WixBalBAFunctions; + + case BalSymbolDefinitionType.WixBalCondition: + return BalSymbolDefinitions.WixBalCondition; + + case BalSymbolDefinitionType.WixBalPackageInfo: + return BalSymbolDefinitions.WixBalPackageInfo; + + case BalSymbolDefinitionType.WixDncOptions: + return BalSymbolDefinitions.WixDncOptions; + + case BalSymbolDefinitionType.WixMbaPrereqInformation: + return BalSymbolDefinitions.WixMbaPrereqInformation; + + case BalSymbolDefinitionType.WixStdbaOptions: + return BalSymbolDefinitions.WixStdbaOptions; + + case BalSymbolDefinitionType.WixStdbaOverridableVariable: + return BalSymbolDefinitions.WixStdbaOverridableVariable; + + default: + throw new ArgumentOutOfRangeException(nameof(type)); + } + } + + static BalSymbolDefinitions() + { + WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixBalPackageInfo.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixDncOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixMbaPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); + } + } +} diff --git a/src/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs b/src/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs new file mode 100644 index 00000000..0423a52f --- /dev/null +++ b/src/wixext/Symbols/WixBalBAFactoryAssemblySymbol.cs @@ -0,0 +1,47 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.PayloadId), IntermediateFieldType.String), + }, + typeof(WixBalBAFactoryAssemblySymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixBalBAFactorySymbolFields + { + PayloadId, + } + + public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol + { + public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null) + { + } + + public WixBalBAFactoryAssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBalBAFactorySymbolFields index] => this.Fields[(int)index]; + + public string PayloadId + { + get => this.Fields[(int)WixBalBAFactorySymbolFields.PayloadId].AsString(); + set => this.Set((int)WixBalBAFactorySymbolFields.PayloadId, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixBalBAFunctionsSymbol.cs b/src/wixext/Symbols/WixBalBAFunctionsSymbol.cs new file mode 100644 index 00000000..19c7602d --- /dev/null +++ b/src/wixext/Symbols/WixBalBAFunctionsSymbol.cs @@ -0,0 +1,47 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBalBAFunctions = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixBalBAFunctions.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixBalBAFunctionsSymbolFields.PayloadId), IntermediateFieldType.String), + }, + typeof(WixBalBAFunctionsSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixBalBAFunctionsSymbolFields + { + PayloadId, + } + + public class WixBalBAFunctionsSymbol : IntermediateSymbol + { + public WixBalBAFunctionsSymbol() : base(BalSymbolDefinitions.WixBalBAFunctions, null, null) + { + } + + public WixBalBAFunctionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFunctions, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBalBAFunctionsSymbolFields index] => this.Fields[(int)index]; + + public string PayloadId + { + get => this.Fields[(int)WixBalBAFunctionsSymbolFields.PayloadId].AsString(); + set => this.Set((int)WixBalBAFunctionsSymbolFields.PayloadId, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixBalConditionSymbol.cs b/src/wixext/Symbols/WixBalConditionSymbol.cs new file mode 100644 index 00000000..c2527fbc --- /dev/null +++ b/src/wixext/Symbols/WixBalConditionSymbol.cs @@ -0,0 +1,55 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBalCondition = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixBalCondition.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Message), IntermediateFieldType.String), + }, + typeof(WixBalConditionSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixBalConditionSymbolFields + { + Condition, + Message, + } + + public class WixBalConditionSymbol : IntermediateSymbol + { + public WixBalConditionSymbol() : base(BalSymbolDefinitions.WixBalCondition, null, null) + { + } + + public WixBalConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalCondition, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBalConditionSymbolFields index] => this.Fields[(int)index]; + + public string Condition + { + get => this.Fields[(int)WixBalConditionSymbolFields.Condition].AsString(); + set => this.Set((int)WixBalConditionSymbolFields.Condition, value); + } + + public string Message + { + get => this.Fields[(int)WixBalConditionSymbolFields.Message].AsString(); + set => this.Set((int)WixBalConditionSymbolFields.Message, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixBalPackageInfoSymbol.cs b/src/wixext/Symbols/WixBalPackageInfoSymbol.cs new file mode 100644 index 00000000..b09cb191 --- /dev/null +++ b/src/wixext/Symbols/WixBalPackageInfoSymbol.cs @@ -0,0 +1,55 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixBalPackageInfo = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixBalPackageInfo.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.PackageId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.DisplayInternalUICondition), IntermediateFieldType.String), + }, + typeof(WixBalPackageInfoSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixBalPackageInfoSymbolFields + { + PackageId, + DisplayInternalUICondition, + } + + public class WixBalPackageInfoSymbol : IntermediateSymbol + { + public WixBalPackageInfoSymbol() : base(BalSymbolDefinitions.WixBalPackageInfo, null, null) + { + } + + public WixBalPackageInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalPackageInfo, sourceLineNumber, id) + { + } + + public IntermediateField this[WixBalPackageInfoSymbolFields index] => this.Fields[(int)index]; + + public string PackageId + { + get => this.Fields[(int)WixBalPackageInfoSymbolFields.PackageId].AsString(); + set => this.Set((int)WixBalPackageInfoSymbolFields.PackageId, value); + } + + public string DisplayInternalUICondition + { + get => this.Fields[(int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition].AsString(); + set => this.Set((int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition, value); + } + } +} diff --git a/src/wixext/Symbols/WixDncOptionsSymbol.cs b/src/wixext/Symbols/WixDncOptionsSymbol.cs new file mode 100644 index 00000000..b9a41c21 --- /dev/null +++ b/src/wixext/Symbols/WixDncOptionsSymbol.cs @@ -0,0 +1,47 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixDncOptions = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixDncOptions.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixDncOptionsSymbolFields.SelfContainedDeployment), IntermediateFieldType.Number), + }, + typeof(WixDncOptionsSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixDncOptionsSymbolFields + { + SelfContainedDeployment, + } + + public class WixDncOptionsSymbol : IntermediateSymbol + { + public WixDncOptionsSymbol() : base(BalSymbolDefinitions.WixDncOptions, null, null) + { + } + + public WixDncOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixDncOptions, sourceLineNumber, id) + { + } + + public IntermediateField this[WixDncOptionsSymbolFields index] => this.Fields[(int)index]; + + public int SelfContainedDeployment + { + get => this.Fields[(int)WixDncOptionsSymbolFields.SelfContainedDeployment].AsNumber(); + set => this.Set((int)WixDncOptionsSymbolFields.SelfContainedDeployment, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixMbaPrereqInformationSymbol.cs b/src/wixext/Symbols/WixMbaPrereqInformationSymbol.cs new file mode 100644 index 00000000..e4d78da0 --- /dev/null +++ b/src/wixext/Symbols/WixMbaPrereqInformationSymbol.cs @@ -0,0 +1,63 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixMbaPrereqInformation = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixMbaPrereqInformation.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.PackageId), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseUrl), IntermediateFieldType.String), + }, + typeof(WixMbaPrereqInformationSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixMbaPrereqInformationSymbolFields + { + PackageId, + LicenseFile, + LicenseUrl, + } + + public class WixMbaPrereqInformationSymbol : IntermediateSymbol + { + public WixMbaPrereqInformationSymbol() : base(BalSymbolDefinitions.WixMbaPrereqInformation, null, null) + { + } + + public WixMbaPrereqInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixMbaPrereqInformation, sourceLineNumber, id) + { + } + + public IntermediateField this[WixMbaPrereqInformationSymbolFields index] => this.Fields[(int)index]; + + public string PackageId + { + get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.PackageId].AsString(); + set => this.Set((int)WixMbaPrereqInformationSymbolFields.PackageId, value); + } + + public string LicenseFile + { + get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseFile].AsString(); + set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseFile, value); + } + + public string LicenseUrl + { + get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseUrl].AsString(); + set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseUrl, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixStdbaOptionsSymbol.cs b/src/wixext/Symbols/WixStdbaOptionsSymbol.cs new file mode 100644 index 00000000..cb2694da --- /dev/null +++ b/src/wixext/Symbols/WixStdbaOptionsSymbol.cs @@ -0,0 +1,79 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixStdbaOptions = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixStdbaOptions.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressOptionsUI), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressDowngradeFailure), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressRepair), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.ShowVersion), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SupportCacheOnly), IntermediateFieldType.Number), + }, + typeof(WixStdbaOptionsSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixStdbaOptionsSymbolFields + { + SuppressOptionsUI, + SuppressDowngradeFailure, + SuppressRepair, + ShowVersion, + SupportCacheOnly, + } + + public class WixStdbaOptionsSymbol : IntermediateSymbol + { + public WixStdbaOptionsSymbol() : base(BalSymbolDefinitions.WixStdbaOptions, null, null) + { + } + + public WixStdbaOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOptions, sourceLineNumber, id) + { + } + + public IntermediateField this[WixStdbaOptionsSymbolFields index] => this.Fields[(int)index]; + + public int SuppressOptionsUI + { + get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressOptionsUI].AsNumber(); + set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressOptionsUI, value); + } + + public int SuppressDowngradeFailure + { + get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure].AsNumber(); + set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure, value); + } + + public int SuppressRepair + { + get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressRepair].AsNumber(); + set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressRepair, value); + } + + public int ShowVersion + { + get => this.Fields[(int)WixStdbaOptionsSymbolFields.ShowVersion].AsNumber(); + set => this.Set((int)WixStdbaOptionsSymbolFields.ShowVersion, value); + } + + public int SupportCacheOnly + { + get => this.Fields[(int)WixStdbaOptionsSymbolFields.SupportCacheOnly].AsNumber(); + set => this.Set((int)WixStdbaOptionsSymbolFields.SupportCacheOnly, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs b/src/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs new file mode 100644 index 00000000..1d84d1aa --- /dev/null +++ b/src/wixext/Symbols/WixStdbaOverridableVariableSymbol.cs @@ -0,0 +1,47 @@ +// 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. + +namespace WixToolset.Bal +{ + using WixToolset.Data; + using WixToolset.Bal.Symbols; + + public static partial class BalSymbolDefinitions + { + public static readonly IntermediateSymbolDefinition WixStdbaOverridableVariable = new IntermediateSymbolDefinition( + BalSymbolDefinitionType.WixStdbaOverridableVariable.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixStdbaOverridableVariableSymbolFields.Name), IntermediateFieldType.String), + }, + typeof(WixStdbaOverridableVariableSymbol)); + } +} + +namespace WixToolset.Bal.Symbols +{ + using WixToolset.Data; + + public enum WixStdbaOverridableVariableSymbolFields + { + Name, + } + + public class WixStdbaOverridableVariableSymbol : IntermediateSymbol + { + public WixStdbaOverridableVariableSymbol() : base(BalSymbolDefinitions.WixStdbaOverridableVariable, null, null) + { + } + + public WixStdbaOverridableVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOverridableVariable, sourceLineNumber, id) + { + } + + public IntermediateField this[WixStdbaOverridableVariableSymbolFields index] => this.Fields[(int)index]; + + public string Name + { + get => this.Fields[(int)WixStdbaOverridableVariableSymbolFields.Name].AsString(); + set => this.Set((int)WixStdbaOverridableVariableSymbolFields.Name, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/BalTupleDefinitions.cs b/src/wixext/Tuples/BalTupleDefinitions.cs deleted file mode 100644 index 90865621..00000000 --- a/src/wixext/Tuples/BalTupleDefinitions.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using System; - using WixToolset.Data; - using WixToolset.Data.Burn; - - public enum BalSymbolDefinitionType - { - WixBalBAFactoryAssembly, - WixBalBAFunctions, - WixBalCondition, - WixBalPackageInfo, - WixDncOptions, - WixMbaPrereqInformation, - WixStdbaOptions, - WixStdbaOverridableVariable, - } - - public static partial class BalSymbolDefinitions - { - public static readonly Version Version = new Version("4.0.0"); - - public static IntermediateSymbolDefinition ByName(string name) - { - if (!Enum.TryParse(name, out BalSymbolDefinitionType type)) - { - return null; - } - - return ByType(type); - } - - public static IntermediateSymbolDefinition ByType(BalSymbolDefinitionType type) - { - switch (type) - { - case BalSymbolDefinitionType.WixBalBAFactoryAssembly: - return BalSymbolDefinitions.WixBalBAFactoryAssembly; - - case BalSymbolDefinitionType.WixBalBAFunctions: - return BalSymbolDefinitions.WixBalBAFunctions; - - case BalSymbolDefinitionType.WixBalCondition: - return BalSymbolDefinitions.WixBalCondition; - - case BalSymbolDefinitionType.WixBalPackageInfo: - return BalSymbolDefinitions.WixBalPackageInfo; - - case BalSymbolDefinitionType.WixDncOptions: - return BalSymbolDefinitions.WixDncOptions; - - case BalSymbolDefinitionType.WixMbaPrereqInformation: - return BalSymbolDefinitions.WixMbaPrereqInformation; - - case BalSymbolDefinitionType.WixStdbaOptions: - return BalSymbolDefinitions.WixStdbaOptions; - - case BalSymbolDefinitionType.WixStdbaOverridableVariable: - return BalSymbolDefinitions.WixStdbaOverridableVariable; - - default: - throw new ArgumentOutOfRangeException(nameof(type)); - } - } - - static BalSymbolDefinitions() - { - WixBalBAFactoryAssembly.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixBalBAFunctions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixBalCondition.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixBalPackageInfo.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixDncOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixMbaPrereqInformation.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixStdbaOptions.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - WixStdbaOverridableVariable.AddTag(BurnConstants.BootstrapperApplicationDataSymbolDefinitionTag); - } - } -} diff --git a/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs b/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs deleted file mode 100644 index 0423a52f..00000000 --- a/src/wixext/Tuples/WixBalBAFactoryAssemblyTuple.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.PayloadId), IntermediateFieldType.String), - }, - typeof(WixBalBAFactoryAssemblySymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixBalBAFactorySymbolFields - { - PayloadId, - } - - public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol - { - public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null) - { - } - - public WixBalBAFactoryAssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBalBAFactorySymbolFields index] => this.Fields[(int)index]; - - public string PayloadId - { - get => this.Fields[(int)WixBalBAFactorySymbolFields.PayloadId].AsString(); - set => this.Set((int)WixBalBAFactorySymbolFields.PayloadId, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixBalBAFunctionsTuple.cs b/src/wixext/Tuples/WixBalBAFunctionsTuple.cs deleted file mode 100644 index 19c7602d..00000000 --- a/src/wixext/Tuples/WixBalBAFunctionsTuple.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBalBAFunctions = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixBalBAFunctions.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixBalBAFunctionsSymbolFields.PayloadId), IntermediateFieldType.String), - }, - typeof(WixBalBAFunctionsSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixBalBAFunctionsSymbolFields - { - PayloadId, - } - - public class WixBalBAFunctionsSymbol : IntermediateSymbol - { - public WixBalBAFunctionsSymbol() : base(BalSymbolDefinitions.WixBalBAFunctions, null, null) - { - } - - public WixBalBAFunctionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFunctions, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBalBAFunctionsSymbolFields index] => this.Fields[(int)index]; - - public string PayloadId - { - get => this.Fields[(int)WixBalBAFunctionsSymbolFields.PayloadId].AsString(); - set => this.Set((int)WixBalBAFunctionsSymbolFields.PayloadId, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixBalConditionTuple.cs b/src/wixext/Tuples/WixBalConditionTuple.cs deleted file mode 100644 index c2527fbc..00000000 --- a/src/wixext/Tuples/WixBalConditionTuple.cs +++ /dev/null @@ -1,55 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBalCondition = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixBalCondition.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Condition), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBalConditionSymbolFields.Message), IntermediateFieldType.String), - }, - typeof(WixBalConditionSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixBalConditionSymbolFields - { - Condition, - Message, - } - - public class WixBalConditionSymbol : IntermediateSymbol - { - public WixBalConditionSymbol() : base(BalSymbolDefinitions.WixBalCondition, null, null) - { - } - - public WixBalConditionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalCondition, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBalConditionSymbolFields index] => this.Fields[(int)index]; - - public string Condition - { - get => this.Fields[(int)WixBalConditionSymbolFields.Condition].AsString(); - set => this.Set((int)WixBalConditionSymbolFields.Condition, value); - } - - public string Message - { - get => this.Fields[(int)WixBalConditionSymbolFields.Message].AsString(); - set => this.Set((int)WixBalConditionSymbolFields.Message, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixBalPackageInfoTuple.cs b/src/wixext/Tuples/WixBalPackageInfoTuple.cs deleted file mode 100644 index b09cb191..00000000 --- a/src/wixext/Tuples/WixBalPackageInfoTuple.cs +++ /dev/null @@ -1,55 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixBalPackageInfo = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixBalPackageInfo.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.PackageId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.DisplayInternalUICondition), IntermediateFieldType.String), - }, - typeof(WixBalPackageInfoSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixBalPackageInfoSymbolFields - { - PackageId, - DisplayInternalUICondition, - } - - public class WixBalPackageInfoSymbol : IntermediateSymbol - { - public WixBalPackageInfoSymbol() : base(BalSymbolDefinitions.WixBalPackageInfo, null, null) - { - } - - public WixBalPackageInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalPackageInfo, sourceLineNumber, id) - { - } - - public IntermediateField this[WixBalPackageInfoSymbolFields index] => this.Fields[(int)index]; - - public string PackageId - { - get => this.Fields[(int)WixBalPackageInfoSymbolFields.PackageId].AsString(); - set => this.Set((int)WixBalPackageInfoSymbolFields.PackageId, value); - } - - public string DisplayInternalUICondition - { - get => this.Fields[(int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition].AsString(); - set => this.Set((int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition, value); - } - } -} diff --git a/src/wixext/Tuples/WixDncOptionsTuple.cs b/src/wixext/Tuples/WixDncOptionsTuple.cs deleted file mode 100644 index b9a41c21..00000000 --- a/src/wixext/Tuples/WixDncOptionsTuple.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixDncOptions = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixDncOptions.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixDncOptionsSymbolFields.SelfContainedDeployment), IntermediateFieldType.Number), - }, - typeof(WixDncOptionsSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixDncOptionsSymbolFields - { - SelfContainedDeployment, - } - - public class WixDncOptionsSymbol : IntermediateSymbol - { - public WixDncOptionsSymbol() : base(BalSymbolDefinitions.WixDncOptions, null, null) - { - } - - public WixDncOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixDncOptions, sourceLineNumber, id) - { - } - - public IntermediateField this[WixDncOptionsSymbolFields index] => this.Fields[(int)index]; - - public int SelfContainedDeployment - { - get => this.Fields[(int)WixDncOptionsSymbolFields.SelfContainedDeployment].AsNumber(); - set => this.Set((int)WixDncOptionsSymbolFields.SelfContainedDeployment, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixMbaPrereqInformationTuple.cs b/src/wixext/Tuples/WixMbaPrereqInformationTuple.cs deleted file mode 100644 index e4d78da0..00000000 --- a/src/wixext/Tuples/WixMbaPrereqInformationTuple.cs +++ /dev/null @@ -1,63 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixMbaPrereqInformation = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixMbaPrereqInformation.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.PackageId), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseFile), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(WixMbaPrereqInformationSymbolFields.LicenseUrl), IntermediateFieldType.String), - }, - typeof(WixMbaPrereqInformationSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixMbaPrereqInformationSymbolFields - { - PackageId, - LicenseFile, - LicenseUrl, - } - - public class WixMbaPrereqInformationSymbol : IntermediateSymbol - { - public WixMbaPrereqInformationSymbol() : base(BalSymbolDefinitions.WixMbaPrereqInformation, null, null) - { - } - - public WixMbaPrereqInformationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixMbaPrereqInformation, sourceLineNumber, id) - { - } - - public IntermediateField this[WixMbaPrereqInformationSymbolFields index] => this.Fields[(int)index]; - - public string PackageId - { - get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.PackageId].AsString(); - set => this.Set((int)WixMbaPrereqInformationSymbolFields.PackageId, value); - } - - public string LicenseFile - { - get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseFile].AsString(); - set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseFile, value); - } - - public string LicenseUrl - { - get => this.Fields[(int)WixMbaPrereqInformationSymbolFields.LicenseUrl].AsString(); - set => this.Set((int)WixMbaPrereqInformationSymbolFields.LicenseUrl, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixStdbaOptionsTuple.cs b/src/wixext/Tuples/WixStdbaOptionsTuple.cs deleted file mode 100644 index cb2694da..00000000 --- a/src/wixext/Tuples/WixStdbaOptionsTuple.cs +++ /dev/null @@ -1,79 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixStdbaOptions = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixStdbaOptions.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressOptionsUI), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressDowngradeFailure), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SuppressRepair), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.ShowVersion), IntermediateFieldType.Number), - new IntermediateFieldDefinition(nameof(WixStdbaOptionsSymbolFields.SupportCacheOnly), IntermediateFieldType.Number), - }, - typeof(WixStdbaOptionsSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixStdbaOptionsSymbolFields - { - SuppressOptionsUI, - SuppressDowngradeFailure, - SuppressRepair, - ShowVersion, - SupportCacheOnly, - } - - public class WixStdbaOptionsSymbol : IntermediateSymbol - { - public WixStdbaOptionsSymbol() : base(BalSymbolDefinitions.WixStdbaOptions, null, null) - { - } - - public WixStdbaOptionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOptions, sourceLineNumber, id) - { - } - - public IntermediateField this[WixStdbaOptionsSymbolFields index] => this.Fields[(int)index]; - - public int SuppressOptionsUI - { - get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressOptionsUI].AsNumber(); - set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressOptionsUI, value); - } - - public int SuppressDowngradeFailure - { - get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure].AsNumber(); - set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressDowngradeFailure, value); - } - - public int SuppressRepair - { - get => this.Fields[(int)WixStdbaOptionsSymbolFields.SuppressRepair].AsNumber(); - set => this.Set((int)WixStdbaOptionsSymbolFields.SuppressRepair, value); - } - - public int ShowVersion - { - get => this.Fields[(int)WixStdbaOptionsSymbolFields.ShowVersion].AsNumber(); - set => this.Set((int)WixStdbaOptionsSymbolFields.ShowVersion, value); - } - - public int SupportCacheOnly - { - get => this.Fields[(int)WixStdbaOptionsSymbolFields.SupportCacheOnly].AsNumber(); - set => this.Set((int)WixStdbaOptionsSymbolFields.SupportCacheOnly, value); - } - } -} \ No newline at end of file diff --git a/src/wixext/Tuples/WixStdbaOverridableVariableTuple.cs b/src/wixext/Tuples/WixStdbaOverridableVariableTuple.cs deleted file mode 100644 index 1d84d1aa..00000000 --- a/src/wixext/Tuples/WixStdbaOverridableVariableTuple.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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. - -namespace WixToolset.Bal -{ - using WixToolset.Data; - using WixToolset.Bal.Symbols; - - public static partial class BalSymbolDefinitions - { - public static readonly IntermediateSymbolDefinition WixStdbaOverridableVariable = new IntermediateSymbolDefinition( - BalSymbolDefinitionType.WixStdbaOverridableVariable.ToString(), - new[] - { - new IntermediateFieldDefinition(nameof(WixStdbaOverridableVariableSymbolFields.Name), IntermediateFieldType.String), - }, - typeof(WixStdbaOverridableVariableSymbol)); - } -} - -namespace WixToolset.Bal.Symbols -{ - using WixToolset.Data; - - public enum WixStdbaOverridableVariableSymbolFields - { - Name, - } - - public class WixStdbaOverridableVariableSymbol : IntermediateSymbol - { - public WixStdbaOverridableVariableSymbol() : base(BalSymbolDefinitions.WixStdbaOverridableVariable, null, null) - { - } - - public WixStdbaOverridableVariableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixStdbaOverridableVariable, sourceLineNumber, id) - { - } - - public IntermediateField this[WixStdbaOverridableVariableSymbolFields index] => this.Fields[(int)index]; - - public string Name - { - get => this.Fields[(int)WixStdbaOverridableVariableSymbolFields.Name].AsString(); - set => this.Set((int)WixStdbaOverridableVariableSymbolFields.Name, value); - } - } -} \ No newline at end of file -- cgit v1.2.3-55-g6feb