diff options
Diffstat (limited to 'src/wixext/VSWindowsInstallerBackendExtension.cs')
| -rw-r--r-- | src/wixext/VSWindowsInstallerBackendExtension.cs | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/src/wixext/VSWindowsInstallerBackendExtension.cs b/src/wixext/VSWindowsInstallerBackendExtension.cs new file mode 100644 index 00000000..16ed008a --- /dev/null +++ b/src/wixext/VSWindowsInstallerBackendExtension.cs | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.VisualStudio | ||
| 4 | { | ||
| 5 | using WixToolset.Data.WindowsInstaller; | ||
| 6 | using WixToolset.Extensibility; | ||
| 7 | |||
| 8 | public class VSWindowsInstallerBackendExtension : BaseWindowsInstallerBackendExtension | ||
| 9 | { | ||
| 10 | private static readonly TableDefinition[] Tables = new[] { | ||
| 11 | new TableDefinition( | ||
| 12 | "HelpFile", | ||
| 13 | new[] | ||
| 14 | { | ||
| 15 | new ColumnDefinition("HelpFileKey", ColumnType.String, 72, true, false, ColumnCategory.Identifier, description: "Primary Key for HelpFile Table (required)."), | ||
| 16 | new ColumnDefinition("HelpFileName", ColumnType.String, 0, false, false, ColumnCategory.Text, description: "Internal Microsoft Help ID for this HelpFile (required)."), | ||
| 17 | new ColumnDefinition("LangID", ColumnType.Number, 2, false, true, ColumnCategory.Language, description: "Language ID for content file (optional)."), | ||
| 18 | new ColumnDefinition("File_HxS", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxS (Title) file (required)."), | ||
| 19 | new ColumnDefinition("File_HxI", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxI (Index) file (required)."), | ||
| 20 | new ColumnDefinition("File_HxQ", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxQ (Query) file (required)."), | ||
| 21 | new ColumnDefinition("File_HxR", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxR (Attributes) file (required)."), | ||
| 22 | new ColumnDefinition("File_Samples", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for a file that is in the 'root' of the samples directory for this HelpFile (optional)."), | ||
| 23 | } | ||
| 24 | ), | ||
| 25 | new TableDefinition( | ||
| 26 | "HelpFileToNamespace", | ||
| 27 | new[] | ||
| 28 | { | ||
| 29 | new ColumnDefinition("HelpFile_", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpFile", keyColumn: 1, description: "Foreign key into HelpFile table (required)."), | ||
| 30 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table (required)."), | ||
| 31 | } | ||
| 32 | ), | ||
| 33 | new TableDefinition( | ||
| 34 | "HelpFilter", | ||
| 35 | new[] | ||
| 36 | { | ||
| 37 | new ColumnDefinition("FilterKey", ColumnType.String, 72, true, false, ColumnCategory.Identifier, description: "Primary Key for HelpFilter (required)."), | ||
| 38 | new ColumnDefinition("Description", ColumnType.Localized, 0, false, false, ColumnCategory.Text, description: "Friendly name for Filter (required)."), | ||
| 39 | new ColumnDefinition("QueryString", ColumnType.String, 0, false, true, ColumnCategory.Text, description: "Query String for Help Filter (optional)."), | ||
| 40 | } | ||
| 41 | ), | ||
| 42 | new TableDefinition( | ||
| 43 | "HelpFilterToNamespace", | ||
| 44 | new[] | ||
| 45 | { | ||
| 46 | new ColumnDefinition("HelpFilter_", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpFilter", keyColumn: 1, description: "Foreign key into HelpFilter table (required)."), | ||
| 47 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table (required)."), | ||
| 48 | } | ||
| 49 | ), | ||
| 50 | new TableDefinition( | ||
| 51 | "HelpNamespace", | ||
| 52 | new[] | ||
| 53 | { | ||
| 54 | new ColumnDefinition("NamespaceKey", ColumnType.String, 72, true, false, ColumnCategory.Identifier, description: "Primary Key for HelpNamespace (required)."), | ||
| 55 | new ColumnDefinition("NamespaceName", ColumnType.String, 0, false, false, ColumnCategory.Text, description: "Internal Microsoft Help ID for this Namespace (required)."), | ||
| 56 | new ColumnDefinition("File_Collection", ColumnType.String, 72, false, false, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxC (Collection) file (required)."), | ||
| 57 | new ColumnDefinition("Description", ColumnType.Localized, 0, false, true, ColumnCategory.Text, description: "Friendly name for Namespace (optional)."), | ||
| 58 | } | ||
| 59 | ), | ||
| 60 | new TableDefinition( | ||
| 61 | "HelpPlugin", | ||
| 62 | new[] | ||
| 63 | { | ||
| 64 | new ColumnDefinition("HelpNamespace_", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table for the child namespace that will be plugged into the parent namespace (required)."), | ||
| 65 | new ColumnDefinition("HelpNamespace_Parent", ColumnType.String, 72, true, false, ColumnCategory.Identifier, keyTable: "HelpNamespace", keyColumn: 1, description: "Foreign key into HelpNamespace table for the parent namespace into which the child will be inserted (required)."), | ||
| 66 | new ColumnDefinition("File_HxT", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxT file of child namespace (optional)."), | ||
| 67 | new ColumnDefinition("File_HxA", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxA (Attributes) file of child namespace (optional)."), | ||
| 68 | new ColumnDefinition("File_ParentHxT", ColumnType.String, 72, false, true, ColumnCategory.Identifier, keyTable:"File", keyColumn: 1, description: "Key for HxT file of parent namespace that now includes the new child namespace (optional)."), | ||
| 69 | } | ||
| 70 | ), | ||
| 71 | }; | ||
| 72 | |||
| 73 | protected override TableDefinition[] TableDefinitionsForTuples => Tables; | ||
| 74 | } | ||
| 75 | } | ||
