From c8f39be3f8b70b36a8b89b6ccdd4ebb94290b6b3 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 30 Dec 2017 01:56:55 -0800 Subject: Initial code commit --- src/wixext/Tuples/EventManifestTuple.cs | 55 ++++++++++++ src/wixext/Tuples/FileSharePermissionsTuple.cs | 63 +++++++++++++ src/wixext/Tuples/FileShareTuple.cs | 95 ++++++++++++++++++++ src/wixext/Tuples/GroupTuple.cs | 71 +++++++++++++++ src/wixext/Tuples/PerfmonManifestTuple.cs | 63 +++++++++++++ src/wixext/Tuples/PerfmonTuple.cs | 63 +++++++++++++ src/wixext/Tuples/PerformanceCategoryTuple.cs | 79 ++++++++++++++++ src/wixext/Tuples/SecureObjectsTuple.cs | 87 ++++++++++++++++++ src/wixext/Tuples/ServiceConfigTuple.cs | 119 +++++++++++++++++++++++++ src/wixext/Tuples/UserGroupTuple.cs | 55 ++++++++++++ src/wixext/Tuples/UserTuple.cs | 87 ++++++++++++++++++ src/wixext/Tuples/UtilTupleDefinitions.cs | 111 +++++++++++++++++++++++ src/wixext/Tuples/WixCloseApplicationTuple.cs | 111 +++++++++++++++++++++++ src/wixext/Tuples/WixFormatFilesTuple.cs | 55 ++++++++++++ src/wixext/Tuples/WixInternetShortcutTuple.cs | 103 +++++++++++++++++++++ src/wixext/Tuples/WixRemoveFolderExTuple.cs | 71 +++++++++++++++ src/wixext/Tuples/WixRestartResourceTuple.cs | 71 +++++++++++++++ src/wixext/Tuples/WixTouchFileTuple.cs | 71 +++++++++++++++ src/wixext/Tuples/XmlConfigTuple.cs | 111 +++++++++++++++++++++++ src/wixext/Tuples/XmlFileTuple.cs | 103 +++++++++++++++++++++ 20 files changed, 1644 insertions(+) create mode 100644 src/wixext/Tuples/EventManifestTuple.cs create mode 100644 src/wixext/Tuples/FileSharePermissionsTuple.cs create mode 100644 src/wixext/Tuples/FileShareTuple.cs create mode 100644 src/wixext/Tuples/GroupTuple.cs create mode 100644 src/wixext/Tuples/PerfmonManifestTuple.cs create mode 100644 src/wixext/Tuples/PerfmonTuple.cs create mode 100644 src/wixext/Tuples/PerformanceCategoryTuple.cs create mode 100644 src/wixext/Tuples/SecureObjectsTuple.cs create mode 100644 src/wixext/Tuples/ServiceConfigTuple.cs create mode 100644 src/wixext/Tuples/UserGroupTuple.cs create mode 100644 src/wixext/Tuples/UserTuple.cs create mode 100644 src/wixext/Tuples/UtilTupleDefinitions.cs create mode 100644 src/wixext/Tuples/WixCloseApplicationTuple.cs create mode 100644 src/wixext/Tuples/WixFormatFilesTuple.cs create mode 100644 src/wixext/Tuples/WixInternetShortcutTuple.cs create mode 100644 src/wixext/Tuples/WixRemoveFolderExTuple.cs create mode 100644 src/wixext/Tuples/WixRestartResourceTuple.cs create mode 100644 src/wixext/Tuples/WixTouchFileTuple.cs create mode 100644 src/wixext/Tuples/XmlConfigTuple.cs create mode 100644 src/wixext/Tuples/XmlFileTuple.cs (limited to 'src/wixext/Tuples') diff --git a/src/wixext/Tuples/EventManifestTuple.cs b/src/wixext/Tuples/EventManifestTuple.cs new file mode 100644 index 00000000..b74d2d59 --- /dev/null +++ b/src/wixext/Tuples/EventManifestTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition EventManifest = new IntermediateTupleDefinition( + UtilTupleDefinitionType.EventManifest.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(EventManifestTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(EventManifestTupleFields.File), IntermediateFieldType.String), + }, + typeof(EventManifestTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum EventManifestTupleFields + { + Component_, + File, + } + + public class EventManifestTuple : IntermediateTuple + { + public EventManifestTuple() : base(UtilTupleDefinitions.EventManifest, null, null) + { + } + + public EventManifestTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.EventManifest, sourceLineNumber, id) + { + } + + public IntermediateField this[EventManifestTupleFields index] => this.Fields[(int)index]; + + public string Component_ + { + get => this.Fields[(int)EventManifestTupleFields.Component_].AsString(); + set => this.Set((int)EventManifestTupleFields.Component_, value); + } + + public string File + { + get => this.Fields[(int)EventManifestTupleFields.File].AsString(); + set => this.Set((int)EventManifestTupleFields.File, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/FileSharePermissionsTuple.cs b/src/wixext/Tuples/FileSharePermissionsTuple.cs new file mode 100644 index 00000000..3f037e0e --- /dev/null +++ b/src/wixext/Tuples/FileSharePermissionsTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition FileSharePermissions = new IntermediateTupleDefinition( + UtilTupleDefinitionType.FileSharePermissions.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(FileSharePermissionsTupleFields.FileShare_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSharePermissionsTupleFields.User_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileSharePermissionsTupleFields.Permissions), IntermediateFieldType.Number), + }, + typeof(FileSharePermissionsTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum FileSharePermissionsTupleFields + { + FileShare_, + User_, + Permissions, + } + + public class FileSharePermissionsTuple : IntermediateTuple + { + public FileSharePermissionsTuple() : base(UtilTupleDefinitions.FileSharePermissions, null, null) + { + } + + public FileSharePermissionsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.FileSharePermissions, sourceLineNumber, id) + { + } + + public IntermediateField this[FileSharePermissionsTupleFields index] => this.Fields[(int)index]; + + public string FileShare_ + { + get => this.Fields[(int)FileSharePermissionsTupleFields.FileShare_].AsString(); + set => this.Set((int)FileSharePermissionsTupleFields.FileShare_, value); + } + + public string User_ + { + get => this.Fields[(int)FileSharePermissionsTupleFields.User_].AsString(); + set => this.Set((int)FileSharePermissionsTupleFields.User_, value); + } + + public int Permissions + { + get => this.Fields[(int)FileSharePermissionsTupleFields.Permissions].AsNumber(); + set => this.Set((int)FileSharePermissionsTupleFields.Permissions, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/FileShareTuple.cs b/src/wixext/Tuples/FileShareTuple.cs new file mode 100644 index 00000000..043f24bd --- /dev/null +++ b/src/wixext/Tuples/FileShareTuple.cs @@ -0,0 +1,95 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition FileShare = new IntermediateTupleDefinition( + UtilTupleDefinitionType.FileShare.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(FileShareTupleFields.FileShare), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.ShareName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.Directory_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.User_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FileShareTupleFields.Permissions), IntermediateFieldType.Number), + }, + typeof(FileShareTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum FileShareTupleFields + { + FileShare, + ShareName, + Component_, + Description, + Directory_, + User_, + Permissions, + } + + public class FileShareTuple : IntermediateTuple + { + public FileShareTuple() : base(UtilTupleDefinitions.FileShare, null, null) + { + } + + public FileShareTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.FileShare, sourceLineNumber, id) + { + } + + public IntermediateField this[FileShareTupleFields index] => this.Fields[(int)index]; + + public string FileShare + { + get => this.Fields[(int)FileShareTupleFields.FileShare].AsString(); + set => this.Set((int)FileShareTupleFields.FileShare, value); + } + + public string ShareName + { + get => this.Fields[(int)FileShareTupleFields.ShareName].AsString(); + set => this.Set((int)FileShareTupleFields.ShareName, value); + } + + public string Component_ + { + get => this.Fields[(int)FileShareTupleFields.Component_].AsString(); + set => this.Set((int)FileShareTupleFields.Component_, value); + } + + public string Description + { + get => this.Fields[(int)FileShareTupleFields.Description].AsString(); + set => this.Set((int)FileShareTupleFields.Description, value); + } + + public string Directory_ + { + get => this.Fields[(int)FileShareTupleFields.Directory_].AsString(); + set => this.Set((int)FileShareTupleFields.Directory_, value); + } + + public string User_ + { + get => this.Fields[(int)FileShareTupleFields.User_].AsString(); + set => this.Set((int)FileShareTupleFields.User_, value); + } + + public int Permissions + { + get => this.Fields[(int)FileShareTupleFields.Permissions].AsNumber(); + set => this.Set((int)FileShareTupleFields.Permissions, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/GroupTuple.cs b/src/wixext/Tuples/GroupTuple.cs new file mode 100644 index 00000000..97335714 --- /dev/null +++ b/src/wixext/Tuples/GroupTuple.cs @@ -0,0 +1,71 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition Group = new IntermediateTupleDefinition( + UtilTupleDefinitionType.Group.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(GroupTupleFields.Group), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(GroupTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(GroupTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(GroupTupleFields.Domain), IntermediateFieldType.String), + }, + typeof(GroupTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum GroupTupleFields + { + Group, + Component_, + Name, + Domain, + } + + public class GroupTuple : IntermediateTuple + { + public GroupTuple() : base(UtilTupleDefinitions.Group, null, null) + { + } + + public GroupTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.Group, sourceLineNumber, id) + { + } + + public IntermediateField this[GroupTupleFields index] => this.Fields[(int)index]; + + public string Group + { + get => this.Fields[(int)GroupTupleFields.Group].AsString(); + set => this.Set((int)GroupTupleFields.Group, value); + } + + public string Component_ + { + get => this.Fields[(int)GroupTupleFields.Component_].AsString(); + set => this.Set((int)GroupTupleFields.Component_, value); + } + + public string Name + { + get => this.Fields[(int)GroupTupleFields.Name].AsString(); + set => this.Set((int)GroupTupleFields.Name, value); + } + + public string Domain + { + get => this.Fields[(int)GroupTupleFields.Domain].AsString(); + set => this.Set((int)GroupTupleFields.Domain, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/PerfmonManifestTuple.cs b/src/wixext/Tuples/PerfmonManifestTuple.cs new file mode 100644 index 00000000..3f6cb8cc --- /dev/null +++ b/src/wixext/Tuples/PerfmonManifestTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition PerfmonManifest = new IntermediateTupleDefinition( + UtilTupleDefinitionType.PerfmonManifest.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerfmonManifestTupleFields.ResourceFileDirectory), IntermediateFieldType.String), + }, + typeof(PerfmonManifestTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum PerfmonManifestTupleFields + { + Component_, + File, + ResourceFileDirectory, + } + + public class PerfmonManifestTuple : IntermediateTuple + { + public PerfmonManifestTuple() : base(UtilTupleDefinitions.PerfmonManifest, null, null) + { + } + + public PerfmonManifestTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.PerfmonManifest, sourceLineNumber, id) + { + } + + public IntermediateField this[PerfmonManifestTupleFields index] => this.Fields[(int)index]; + + public string Component_ + { + get => this.Fields[(int)PerfmonManifestTupleFields.Component_].AsString(); + set => this.Set((int)PerfmonManifestTupleFields.Component_, value); + } + + public string File + { + get => this.Fields[(int)PerfmonManifestTupleFields.File].AsString(); + set => this.Set((int)PerfmonManifestTupleFields.File, value); + } + + public string ResourceFileDirectory + { + get => this.Fields[(int)PerfmonManifestTupleFields.ResourceFileDirectory].AsString(); + set => this.Set((int)PerfmonManifestTupleFields.ResourceFileDirectory, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/PerfmonTuple.cs b/src/wixext/Tuples/PerfmonTuple.cs new file mode 100644 index 00000000..00ea818b --- /dev/null +++ b/src/wixext/Tuples/PerfmonTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition Perfmon = new IntermediateTupleDefinition( + UtilTupleDefinitionType.Perfmon.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(PerfmonTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerfmonTupleFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerfmonTupleFields.Name), IntermediateFieldType.String), + }, + typeof(PerfmonTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum PerfmonTupleFields + { + Component_, + File, + Name, + } + + public class PerfmonTuple : IntermediateTuple + { + public PerfmonTuple() : base(UtilTupleDefinitions.Perfmon, null, null) + { + } + + public PerfmonTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.Perfmon, sourceLineNumber, id) + { + } + + public IntermediateField this[PerfmonTupleFields index] => this.Fields[(int)index]; + + public string Component_ + { + get => this.Fields[(int)PerfmonTupleFields.Component_].AsString(); + set => this.Set((int)PerfmonTupleFields.Component_, value); + } + + public string File + { + get => this.Fields[(int)PerfmonTupleFields.File].AsString(); + set => this.Set((int)PerfmonTupleFields.File, value); + } + + public string Name + { + get => this.Fields[(int)PerfmonTupleFields.Name].AsString(); + set => this.Set((int)PerfmonTupleFields.Name, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/PerformanceCategoryTuple.cs b/src/wixext/Tuples/PerformanceCategoryTuple.cs new file mode 100644 index 00000000..ec2ba73d --- /dev/null +++ b/src/wixext/Tuples/PerformanceCategoryTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition PerformanceCategory = new IntermediateTupleDefinition( + UtilTupleDefinitionType.PerformanceCategory.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.PerformanceCategory), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.IniData), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PerformanceCategoryTupleFields.ConstantData), IntermediateFieldType.String), + }, + typeof(PerformanceCategoryTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum PerformanceCategoryTupleFields + { + PerformanceCategory, + Component_, + Name, + IniData, + ConstantData, + } + + public class PerformanceCategoryTuple : IntermediateTuple + { + public PerformanceCategoryTuple() : base(UtilTupleDefinitions.PerformanceCategory, null, null) + { + } + + public PerformanceCategoryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.PerformanceCategory, sourceLineNumber, id) + { + } + + public IntermediateField this[PerformanceCategoryTupleFields index] => this.Fields[(int)index]; + + public string PerformanceCategory + { + get => this.Fields[(int)PerformanceCategoryTupleFields.PerformanceCategory].AsString(); + set => this.Set((int)PerformanceCategoryTupleFields.PerformanceCategory, value); + } + + public string Component_ + { + get => this.Fields[(int)PerformanceCategoryTupleFields.Component_].AsString(); + set => this.Set((int)PerformanceCategoryTupleFields.Component_, value); + } + + public string Name + { + get => this.Fields[(int)PerformanceCategoryTupleFields.Name].AsString(); + set => this.Set((int)PerformanceCategoryTupleFields.Name, value); + } + + public string IniData + { + get => this.Fields[(int)PerformanceCategoryTupleFields.IniData].AsString(); + set => this.Set((int)PerformanceCategoryTupleFields.IniData, value); + } + + public string ConstantData + { + get => this.Fields[(int)PerformanceCategoryTupleFields.ConstantData].AsString(); + set => this.Set((int)PerformanceCategoryTupleFields.ConstantData, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/SecureObjectsTuple.cs b/src/wixext/Tuples/SecureObjectsTuple.cs new file mode 100644 index 00000000..f54b23d8 --- /dev/null +++ b/src/wixext/Tuples/SecureObjectsTuple.cs @@ -0,0 +1,87 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition SecureObjects = new IntermediateTupleDefinition( + UtilTupleDefinitionType.SecureObjects.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.SecureObject), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.Table), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.Domain), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.User), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.Permission), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(SecureObjectsTupleFields.Component_), IntermediateFieldType.String), + }, + typeof(SecureObjectsTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum SecureObjectsTupleFields + { + SecureObject, + Table, + Domain, + User, + Permission, + Component_, + } + + public class SecureObjectsTuple : IntermediateTuple + { + public SecureObjectsTuple() : base(UtilTupleDefinitions.SecureObjects, null, null) + { + } + + public SecureObjectsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.SecureObjects, sourceLineNumber, id) + { + } + + public IntermediateField this[SecureObjectsTupleFields index] => this.Fields[(int)index]; + + public string SecureObject + { + get => this.Fields[(int)SecureObjectsTupleFields.SecureObject].AsString(); + set => this.Set((int)SecureObjectsTupleFields.SecureObject, value); + } + + public string Table + { + get => this.Fields[(int)SecureObjectsTupleFields.Table].AsString(); + set => this.Set((int)SecureObjectsTupleFields.Table, value); + } + + public string Domain + { + get => this.Fields[(int)SecureObjectsTupleFields.Domain].AsString(); + set => this.Set((int)SecureObjectsTupleFields.Domain, value); + } + + public string User + { + get => this.Fields[(int)SecureObjectsTupleFields.User].AsString(); + set => this.Set((int)SecureObjectsTupleFields.User, value); + } + + public int Permission + { + get => this.Fields[(int)SecureObjectsTupleFields.Permission].AsNumber(); + set => this.Set((int)SecureObjectsTupleFields.Permission, value); + } + + public string Component_ + { + get => this.Fields[(int)SecureObjectsTupleFields.Component_].AsString(); + set => this.Set((int)SecureObjectsTupleFields.Component_, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/ServiceConfigTuple.cs b/src/wixext/Tuples/ServiceConfigTuple.cs new file mode 100644 index 00000000..74d96bca --- /dev/null +++ b/src/wixext/Tuples/ServiceConfigTuple.cs @@ -0,0 +1,119 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition ServiceConfig = new IntermediateTupleDefinition( + UtilTupleDefinitionType.ServiceConfig.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ServiceName), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.NewService), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.FirstFailureActionType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.SecondFailureActionType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ThirdFailureActionType), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ResetPeriodInDays), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.RestartServiceDelayInSeconds), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.ProgramCommandLine), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ServiceConfigTupleFields.RebootMessage), IntermediateFieldType.String), + }, + typeof(ServiceConfigTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum ServiceConfigTupleFields + { + ServiceName, + Component_, + NewService, + FirstFailureActionType, + SecondFailureActionType, + ThirdFailureActionType, + ResetPeriodInDays, + RestartServiceDelayInSeconds, + ProgramCommandLine, + RebootMessage, + } + + public class ServiceConfigTuple : IntermediateTuple + { + public ServiceConfigTuple() : base(UtilTupleDefinitions.ServiceConfig, null, null) + { + } + + public ServiceConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.ServiceConfig, sourceLineNumber, id) + { + } + + public IntermediateField this[ServiceConfigTupleFields index] => this.Fields[(int)index]; + + public string ServiceName + { + get => this.Fields[(int)ServiceConfigTupleFields.ServiceName].AsString(); + set => this.Set((int)ServiceConfigTupleFields.ServiceName, value); + } + + public string Component_ + { + get => this.Fields[(int)ServiceConfigTupleFields.Component_].AsString(); + set => this.Set((int)ServiceConfigTupleFields.Component_, value); + } + + public int NewService + { + get => this.Fields[(int)ServiceConfigTupleFields.NewService].AsNumber(); + set => this.Set((int)ServiceConfigTupleFields.NewService, value); + } + + public string FirstFailureActionType + { + get => this.Fields[(int)ServiceConfigTupleFields.FirstFailureActionType].AsString(); + set => this.Set((int)ServiceConfigTupleFields.FirstFailureActionType, value); + } + + public string SecondFailureActionType + { + get => this.Fields[(int)ServiceConfigTupleFields.SecondFailureActionType].AsString(); + set => this.Set((int)ServiceConfigTupleFields.SecondFailureActionType, value); + } + + public string ThirdFailureActionType + { + get => this.Fields[(int)ServiceConfigTupleFields.ThirdFailureActionType].AsString(); + set => this.Set((int)ServiceConfigTupleFields.ThirdFailureActionType, value); + } + + public int ResetPeriodInDays + { + get => this.Fields[(int)ServiceConfigTupleFields.ResetPeriodInDays].AsNumber(); + set => this.Set((int)ServiceConfigTupleFields.ResetPeriodInDays, value); + } + + public int RestartServiceDelayInSeconds + { + get => this.Fields[(int)ServiceConfigTupleFields.RestartServiceDelayInSeconds].AsNumber(); + set => this.Set((int)ServiceConfigTupleFields.RestartServiceDelayInSeconds, value); + } + + public string ProgramCommandLine + { + get => this.Fields[(int)ServiceConfigTupleFields.ProgramCommandLine].AsString(); + set => this.Set((int)ServiceConfigTupleFields.ProgramCommandLine, value); + } + + public string RebootMessage + { + get => this.Fields[(int)ServiceConfigTupleFields.RebootMessage].AsString(); + set => this.Set((int)ServiceConfigTupleFields.RebootMessage, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/UserGroupTuple.cs b/src/wixext/Tuples/UserGroupTuple.cs new file mode 100644 index 00000000..0386a26e --- /dev/null +++ b/src/wixext/Tuples/UserGroupTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition UserGroup = new IntermediateTupleDefinition( + UtilTupleDefinitionType.UserGroup.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(UserGroupTupleFields.User_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserGroupTupleFields.Group_), IntermediateFieldType.String), + }, + typeof(UserGroupTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum UserGroupTupleFields + { + User_, + Group_, + } + + public class UserGroupTuple : IntermediateTuple + { + public UserGroupTuple() : base(UtilTupleDefinitions.UserGroup, null, null) + { + } + + public UserGroupTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.UserGroup, sourceLineNumber, id) + { + } + + public IntermediateField this[UserGroupTupleFields index] => this.Fields[(int)index]; + + public string User_ + { + get => this.Fields[(int)UserGroupTupleFields.User_].AsString(); + set => this.Set((int)UserGroupTupleFields.User_, value); + } + + public string Group_ + { + get => this.Fields[(int)UserGroupTupleFields.Group_].AsString(); + set => this.Set((int)UserGroupTupleFields.Group_, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/UserTuple.cs b/src/wixext/Tuples/UserTuple.cs new file mode 100644 index 00000000..e8c5315c --- /dev/null +++ b/src/wixext/Tuples/UserTuple.cs @@ -0,0 +1,87 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition User = new IntermediateTupleDefinition( + UtilTupleDefinitionType.User.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(UserTupleFields.User), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserTupleFields.Domain), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserTupleFields.Password), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(UserTupleFields.Attributes), IntermediateFieldType.Number), + }, + typeof(UserTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum UserTupleFields + { + User, + Component_, + Name, + Domain, + Password, + Attributes, + } + + public class UserTuple : IntermediateTuple + { + public UserTuple() : base(UtilTupleDefinitions.User, null, null) + { + } + + public UserTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.User, sourceLineNumber, id) + { + } + + public IntermediateField this[UserTupleFields index] => this.Fields[(int)index]; + + public string User + { + get => this.Fields[(int)UserTupleFields.User].AsString(); + set => this.Set((int)UserTupleFields.User, value); + } + + public string Component_ + { + get => this.Fields[(int)UserTupleFields.Component_].AsString(); + set => this.Set((int)UserTupleFields.Component_, value); + } + + public string Name + { + get => this.Fields[(int)UserTupleFields.Name].AsString(); + set => this.Set((int)UserTupleFields.Name, value); + } + + public string Domain + { + get => this.Fields[(int)UserTupleFields.Domain].AsString(); + set => this.Set((int)UserTupleFields.Domain, value); + } + + public string Password + { + get => this.Fields[(int)UserTupleFields.Password].AsString(); + set => this.Set((int)UserTupleFields.Password, value); + } + + public int Attributes + { + get => this.Fields[(int)UserTupleFields.Attributes].AsNumber(); + set => this.Set((int)UserTupleFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/UtilTupleDefinitions.cs b/src/wixext/Tuples/UtilTupleDefinitions.cs new file mode 100644 index 00000000..00c98337 --- /dev/null +++ b/src/wixext/Tuples/UtilTupleDefinitions.cs @@ -0,0 +1,111 @@ +// 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.Util +{ + using System; + using WixToolset.Data; + + public enum UtilTupleDefinitionType + { + EventManifest, + FileShare, + FileSharePermissions, + Group, + Perfmon, + PerfmonManifest, + PerformanceCategory, + SecureObjects, + ServiceConfig, + User, + UserGroup, + WixCloseApplication, + WixFormatFiles, + WixInternetShortcut, + WixRemoveFolderEx, + WixRestartResource, + WixTouchFile, + XmlConfig, + XmlFile, + } + + public static partial class UtilTupleDefinitions + { + public static readonly Version Version = new Version("4.0.0"); + + public static IntermediateTupleDefinition ByName(string name) + { + if (!Enum.TryParse(name, out UtilTupleDefinitionType type)) + { + return null; + } + + return ByType(type); + } + + public static IntermediateTupleDefinition ByType(UtilTupleDefinitionType type) + { + switch (type) + { + case UtilTupleDefinitionType.EventManifest: + return UtilTupleDefinitions.EventManifest; + + case UtilTupleDefinitionType.FileShare: + return UtilTupleDefinitions.FileShare; + + case UtilTupleDefinitionType.FileSharePermissions: + return UtilTupleDefinitions.FileSharePermissions; + + case UtilTupleDefinitionType.Group: + return UtilTupleDefinitions.Group; + + case UtilTupleDefinitionType.Perfmon: + return UtilTupleDefinitions.Perfmon; + + case UtilTupleDefinitionType.PerfmonManifest: + return UtilTupleDefinitions.PerfmonManifest; + + case UtilTupleDefinitionType.PerformanceCategory: + return UtilTupleDefinitions.PerformanceCategory; + + case UtilTupleDefinitionType.SecureObjects: + return UtilTupleDefinitions.SecureObjects; + + case UtilTupleDefinitionType.ServiceConfig: + return UtilTupleDefinitions.ServiceConfig; + + case UtilTupleDefinitionType.User: + return UtilTupleDefinitions.User; + + case UtilTupleDefinitionType.UserGroup: + return UtilTupleDefinitions.UserGroup; + + case UtilTupleDefinitionType.WixCloseApplication: + return UtilTupleDefinitions.WixCloseApplication; + + case UtilTupleDefinitionType.WixFormatFiles: + return UtilTupleDefinitions.WixFormatFiles; + + case UtilTupleDefinitionType.WixInternetShortcut: + return UtilTupleDefinitions.WixInternetShortcut; + + case UtilTupleDefinitionType.WixRemoveFolderEx: + return UtilTupleDefinitions.WixRemoveFolderEx; + + case UtilTupleDefinitionType.WixRestartResource: + return UtilTupleDefinitions.WixRestartResource; + + case UtilTupleDefinitionType.WixTouchFile: + return UtilTupleDefinitions.WixTouchFile; + + case UtilTupleDefinitionType.XmlConfig: + return UtilTupleDefinitions.XmlConfig; + + case UtilTupleDefinitionType.XmlFile: + return UtilTupleDefinitions.XmlFile; + + default: + throw new ArgumentOutOfRangeException(nameof(type)); + } + } + } +} diff --git a/src/wixext/Tuples/WixCloseApplicationTuple.cs b/src/wixext/Tuples/WixCloseApplicationTuple.cs new file mode 100644 index 00000000..c2095d93 --- /dev/null +++ b/src/wixext/Tuples/WixCloseApplicationTuple.cs @@ -0,0 +1,111 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixCloseApplication = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixCloseApplication.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.WixCloseApplication), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Description), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Condition), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Sequence), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.TerminateExitCode), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixCloseApplicationTupleFields.Timeout), IntermediateFieldType.Number), + }, + typeof(WixCloseApplicationTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixCloseApplicationTupleFields + { + WixCloseApplication, + Target, + Description, + Condition, + Attributes, + Sequence, + Property, + TerminateExitCode, + Timeout, + } + + public class WixCloseApplicationTuple : IntermediateTuple + { + public WixCloseApplicationTuple() : base(UtilTupleDefinitions.WixCloseApplication, null, null) + { + } + + public WixCloseApplicationTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixCloseApplication, sourceLineNumber, id) + { + } + + public IntermediateField this[WixCloseApplicationTupleFields index] => this.Fields[(int)index]; + + public string WixCloseApplication + { + get => this.Fields[(int)WixCloseApplicationTupleFields.WixCloseApplication].AsString(); + set => this.Set((int)WixCloseApplicationTupleFields.WixCloseApplication, value); + } + + public string Target + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Target].AsString(); + set => this.Set((int)WixCloseApplicationTupleFields.Target, value); + } + + public string Description + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Description].AsString(); + set => this.Set((int)WixCloseApplicationTupleFields.Description, value); + } + + public string Condition + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Condition].AsString(); + set => this.Set((int)WixCloseApplicationTupleFields.Condition, value); + } + + public int Attributes + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Attributes].AsNumber(); + set => this.Set((int)WixCloseApplicationTupleFields.Attributes, value); + } + + public int Sequence + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Sequence].AsNumber(); + set => this.Set((int)WixCloseApplicationTupleFields.Sequence, value); + } + + public string Property + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Property].AsString(); + set => this.Set((int)WixCloseApplicationTupleFields.Property, value); + } + + public int TerminateExitCode + { + get => this.Fields[(int)WixCloseApplicationTupleFields.TerminateExitCode].AsNumber(); + set => this.Set((int)WixCloseApplicationTupleFields.TerminateExitCode, value); + } + + public int Timeout + { + get => this.Fields[(int)WixCloseApplicationTupleFields.Timeout].AsNumber(); + set => this.Set((int)WixCloseApplicationTupleFields.Timeout, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/WixFormatFilesTuple.cs b/src/wixext/Tuples/WixFormatFilesTuple.cs new file mode 100644 index 00000000..7fc092b0 --- /dev/null +++ b/src/wixext/Tuples/WixFormatFilesTuple.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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixFormatFiles = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixFormatFiles.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixFormatFilesTupleFields.Binary_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixFormatFilesTupleFields.File_), IntermediateFieldType.String), + }, + typeof(WixFormatFilesTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixFormatFilesTupleFields + { + Binary_, + File_, + } + + public class WixFormatFilesTuple : IntermediateTuple + { + public WixFormatFilesTuple() : base(UtilTupleDefinitions.WixFormatFiles, null, null) + { + } + + public WixFormatFilesTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixFormatFiles, sourceLineNumber, id) + { + } + + public IntermediateField this[WixFormatFilesTupleFields index] => this.Fields[(int)index]; + + public string Binary_ + { + get => this.Fields[(int)WixFormatFilesTupleFields.Binary_].AsString(); + set => this.Set((int)WixFormatFilesTupleFields.Binary_, value); + } + + public string File_ + { + get => this.Fields[(int)WixFormatFilesTupleFields.File_].AsString(); + set => this.Set((int)WixFormatFilesTupleFields.File_, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/WixInternetShortcutTuple.cs b/src/wixext/Tuples/WixInternetShortcutTuple.cs new file mode 100644 index 00000000..5c29cda6 --- /dev/null +++ b/src/wixext/Tuples/WixInternetShortcutTuple.cs @@ -0,0 +1,103 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixInternetShortcut = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixInternetShortcut.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.WixInternetShortcut), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Directory_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Target), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.Attributes), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.IconFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixInternetShortcutTupleFields.IconIndex), IntermediateFieldType.Number), + }, + typeof(WixInternetShortcutTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixInternetShortcutTupleFields + { + WixInternetShortcut, + Component_, + Directory_, + Name, + Target, + Attributes, + IconFile, + IconIndex, + } + + public class WixInternetShortcutTuple : IntermediateTuple + { + public WixInternetShortcutTuple() : base(UtilTupleDefinitions.WixInternetShortcut, null, null) + { + } + + public WixInternetShortcutTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixInternetShortcut, sourceLineNumber, id) + { + } + + public IntermediateField this[WixInternetShortcutTupleFields index] => this.Fields[(int)index]; + + public string WixInternetShortcut + { + get => this.Fields[(int)WixInternetShortcutTupleFields.WixInternetShortcut].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.WixInternetShortcut, value); + } + + public string Component_ + { + get => this.Fields[(int)WixInternetShortcutTupleFields.Component_].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.Component_, value); + } + + public string Directory_ + { + get => this.Fields[(int)WixInternetShortcutTupleFields.Directory_].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.Directory_, value); + } + + public string Name + { + get => this.Fields[(int)WixInternetShortcutTupleFields.Name].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.Name, value); + } + + public string Target + { + get => this.Fields[(int)WixInternetShortcutTupleFields.Target].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.Target, value); + } + + public int Attributes + { + get => this.Fields[(int)WixInternetShortcutTupleFields.Attributes].AsNumber(); + set => this.Set((int)WixInternetShortcutTupleFields.Attributes, value); + } + + public string IconFile + { + get => this.Fields[(int)WixInternetShortcutTupleFields.IconFile].AsString(); + set => this.Set((int)WixInternetShortcutTupleFields.IconFile, value); + } + + public int IconIndex + { + get => this.Fields[(int)WixInternetShortcutTupleFields.IconIndex].AsNumber(); + set => this.Set((int)WixInternetShortcutTupleFields.IconIndex, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/WixRemoveFolderExTuple.cs b/src/wixext/Tuples/WixRemoveFolderExTuple.cs new file mode 100644 index 00000000..35e22e2d --- /dev/null +++ b/src/wixext/Tuples/WixRemoveFolderExTuple.cs @@ -0,0 +1,71 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixRemoveFolderEx = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixRemoveFolderEx.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixRemoveFolderExTupleFields.WixRemoveFolderEx), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRemoveFolderExTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRemoveFolderExTupleFields.Property), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRemoveFolderExTupleFields.InstallMode), IntermediateFieldType.Number), + }, + typeof(WixRemoveFolderExTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixRemoveFolderExTupleFields + { + WixRemoveFolderEx, + Component_, + Property, + InstallMode, + } + + public class WixRemoveFolderExTuple : IntermediateTuple + { + public WixRemoveFolderExTuple() : base(UtilTupleDefinitions.WixRemoveFolderEx, null, null) + { + } + + public WixRemoveFolderExTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixRemoveFolderEx, sourceLineNumber, id) + { + } + + public IntermediateField this[WixRemoveFolderExTupleFields index] => this.Fields[(int)index]; + + public string WixRemoveFolderEx + { + get => this.Fields[(int)WixRemoveFolderExTupleFields.WixRemoveFolderEx].AsString(); + set => this.Set((int)WixRemoveFolderExTupleFields.WixRemoveFolderEx, value); + } + + public string Component_ + { + get => this.Fields[(int)WixRemoveFolderExTupleFields.Component_].AsString(); + set => this.Set((int)WixRemoveFolderExTupleFields.Component_, value); + } + + public string Property + { + get => this.Fields[(int)WixRemoveFolderExTupleFields.Property].AsString(); + set => this.Set((int)WixRemoveFolderExTupleFields.Property, value); + } + + public int InstallMode + { + get => this.Fields[(int)WixRemoveFolderExTupleFields.InstallMode].AsNumber(); + set => this.Set((int)WixRemoveFolderExTupleFields.InstallMode, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/WixRestartResourceTuple.cs b/src/wixext/Tuples/WixRestartResourceTuple.cs new file mode 100644 index 00000000..828d9d15 --- /dev/null +++ b/src/wixext/Tuples/WixRestartResourceTuple.cs @@ -0,0 +1,71 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixRestartResource = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixRestartResource.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixRestartResourceTupleFields.WixRestartResource), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRestartResourceTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRestartResourceTupleFields.Resource), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixRestartResourceTupleFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixRestartResourceTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixRestartResourceTupleFields + { + WixRestartResource, + Component_, + Resource, + Attributes, + } + + public class WixRestartResourceTuple : IntermediateTuple + { + public WixRestartResourceTuple() : base(UtilTupleDefinitions.WixRestartResource, null, null) + { + } + + public WixRestartResourceTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixRestartResource, sourceLineNumber, id) + { + } + + public IntermediateField this[WixRestartResourceTupleFields index] => this.Fields[(int)index]; + + public string WixRestartResource + { + get => this.Fields[(int)WixRestartResourceTupleFields.WixRestartResource].AsString(); + set => this.Set((int)WixRestartResourceTupleFields.WixRestartResource, value); + } + + public string Component_ + { + get => this.Fields[(int)WixRestartResourceTupleFields.Component_].AsString(); + set => this.Set((int)WixRestartResourceTupleFields.Component_, value); + } + + public string Resource + { + get => this.Fields[(int)WixRestartResourceTupleFields.Resource].AsString(); + set => this.Set((int)WixRestartResourceTupleFields.Resource, value); + } + + public int Attributes + { + get => this.Fields[(int)WixRestartResourceTupleFields.Attributes].AsNumber(); + set => this.Set((int)WixRestartResourceTupleFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/WixTouchFileTuple.cs b/src/wixext/Tuples/WixTouchFileTuple.cs new file mode 100644 index 00000000..f87f396e --- /dev/null +++ b/src/wixext/Tuples/WixTouchFileTuple.cs @@ -0,0 +1,71 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition WixTouchFile = new IntermediateTupleDefinition( + UtilTupleDefinitionType.WixTouchFile.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(WixTouchFileTupleFields.WixTouchFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixTouchFileTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixTouchFileTupleFields.Path), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(WixTouchFileTupleFields.Attributes), IntermediateFieldType.Number), + }, + typeof(WixTouchFileTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum WixTouchFileTupleFields + { + WixTouchFile, + Component_, + Path, + Attributes, + } + + public class WixTouchFileTuple : IntermediateTuple + { + public WixTouchFileTuple() : base(UtilTupleDefinitions.WixTouchFile, null, null) + { + } + + public WixTouchFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.WixTouchFile, sourceLineNumber, id) + { + } + + public IntermediateField this[WixTouchFileTupleFields index] => this.Fields[(int)index]; + + public string WixTouchFile + { + get => this.Fields[(int)WixTouchFileTupleFields.WixTouchFile].AsString(); + set => this.Set((int)WixTouchFileTupleFields.WixTouchFile, value); + } + + public string Component_ + { + get => this.Fields[(int)WixTouchFileTupleFields.Component_].AsString(); + set => this.Set((int)WixTouchFileTupleFields.Component_, value); + } + + public string Path + { + get => this.Fields[(int)WixTouchFileTupleFields.Path].AsString(); + set => this.Set((int)WixTouchFileTupleFields.Path, value); + } + + public int Attributes + { + get => this.Fields[(int)WixTouchFileTupleFields.Attributes].AsNumber(); + set => this.Set((int)WixTouchFileTupleFields.Attributes, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/XmlConfigTuple.cs b/src/wixext/Tuples/XmlConfigTuple.cs new file mode 100644 index 00000000..093299b2 --- /dev/null +++ b/src/wixext/Tuples/XmlConfigTuple.cs @@ -0,0 +1,111 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition XmlConfig = new IntermediateTupleDefinition( + UtilTupleDefinitionType.XmlConfig.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.XmlConfig), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.ElementPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.VerifyPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.Flags), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlConfigTupleFields.Sequence), IntermediateFieldType.Number), + }, + typeof(XmlConfigTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum XmlConfigTupleFields + { + XmlConfig, + File, + ElementPath, + VerifyPath, + Name, + Value, + Flags, + Component_, + Sequence, + } + + public class XmlConfigTuple : IntermediateTuple + { + public XmlConfigTuple() : base(UtilTupleDefinitions.XmlConfig, null, null) + { + } + + public XmlConfigTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.XmlConfig, sourceLineNumber, id) + { + } + + public IntermediateField this[XmlConfigTupleFields index] => this.Fields[(int)index]; + + public string XmlConfig + { + get => this.Fields[(int)XmlConfigTupleFields.XmlConfig].AsString(); + set => this.Set((int)XmlConfigTupleFields.XmlConfig, value); + } + + public string File + { + get => this.Fields[(int)XmlConfigTupleFields.File].AsString(); + set => this.Set((int)XmlConfigTupleFields.File, value); + } + + public string ElementPath + { + get => this.Fields[(int)XmlConfigTupleFields.ElementPath].AsString(); + set => this.Set((int)XmlConfigTupleFields.ElementPath, value); + } + + public string VerifyPath + { + get => this.Fields[(int)XmlConfigTupleFields.VerifyPath].AsString(); + set => this.Set((int)XmlConfigTupleFields.VerifyPath, value); + } + + public string Name + { + get => this.Fields[(int)XmlConfigTupleFields.Name].AsString(); + set => this.Set((int)XmlConfigTupleFields.Name, value); + } + + public string Value + { + get => this.Fields[(int)XmlConfigTupleFields.Value].AsString(); + set => this.Set((int)XmlConfigTupleFields.Value, value); + } + + public int Flags + { + get => this.Fields[(int)XmlConfigTupleFields.Flags].AsNumber(); + set => this.Set((int)XmlConfigTupleFields.Flags, value); + } + + public string Component_ + { + get => this.Fields[(int)XmlConfigTupleFields.Component_].AsString(); + set => this.Set((int)XmlConfigTupleFields.Component_, value); + } + + public int Sequence + { + get => this.Fields[(int)XmlConfigTupleFields.Sequence].AsNumber(); + set => this.Set((int)XmlConfigTupleFields.Sequence, value); + } + } +} \ No newline at end of file diff --git a/src/wixext/Tuples/XmlFileTuple.cs b/src/wixext/Tuples/XmlFileTuple.cs new file mode 100644 index 00000000..27ea7119 --- /dev/null +++ b/src/wixext/Tuples/XmlFileTuple.cs @@ -0,0 +1,103 @@ +// 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.Util +{ + using WixToolset.Data; + using WixToolset.Util.Tuples; + + public static partial class UtilTupleDefinitions + { + public static readonly IntermediateTupleDefinition XmlFile = new IntermediateTupleDefinition( + UtilTupleDefinitionType.XmlFile.ToString(), + new[] + { + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.XmlFile), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.File), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.ElementPath), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Name), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Flags), IntermediateFieldType.Number), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Component_), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(XmlFileTupleFields.Sequence), IntermediateFieldType.Number), + }, + typeof(XmlFileTuple)); + } +} + +namespace WixToolset.Util.Tuples +{ + using WixToolset.Data; + + public enum XmlFileTupleFields + { + XmlFile, + File, + ElementPath, + Name, + Value, + Flags, + Component_, + Sequence, + } + + public class XmlFileTuple : IntermediateTuple + { + public XmlFileTuple() : base(UtilTupleDefinitions.XmlFile, null, null) + { + } + + public XmlFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.XmlFile, sourceLineNumber, id) + { + } + + public IntermediateField this[XmlFileTupleFields index] => this.Fields[(int)index]; + + public string XmlFile + { + get => this.Fields[(int)XmlFileTupleFields.XmlFile].AsString(); + set => this.Set((int)XmlFileTupleFields.XmlFile, value); + } + + public string File + { + get => this.Fields[(int)XmlFileTupleFields.File].AsString(); + set => this.Set((int)XmlFileTupleFields.File, value); + } + + public string ElementPath + { + get => this.Fields[(int)XmlFileTupleFields.ElementPath].AsString(); + set => this.Set((int)XmlFileTupleFields.ElementPath, value); + } + + public string Name + { + get => this.Fields[(int)XmlFileTupleFields.Name].AsString(); + set => this.Set((int)XmlFileTupleFields.Name, value); + } + + public string Value + { + get => this.Fields[(int)XmlFileTupleFields.Value].AsString(); + set => this.Set((int)XmlFileTupleFields.Value, value); + } + + public int Flags + { + get => this.Fields[(int)XmlFileTupleFields.Flags].AsNumber(); + set => this.Set((int)XmlFileTupleFields.Flags, value); + } + + public string Component_ + { + get => this.Fields[(int)XmlFileTupleFields.Component_].AsString(); + set => this.Set((int)XmlFileTupleFields.Component_, value); + } + + public int Sequence + { + get => this.Fields[(int)XmlFileTupleFields.Sequence].AsNumber(); + set => this.Set((int)XmlFileTupleFields.Sequence, value); + } + } +} \ No newline at end of file -- cgit v1.2.3-55-g6feb