From 55252821d8effa420f95d10824f59d5e176a43b3 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sat, 27 Feb 2021 07:29:10 -0800 Subject: Absorb Dependency.wixext into Data Partly resolves wixtoolset/issues#5949 --- .../WindowsInstallerTableDefinitions.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs') diff --git a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs index c0075a27..dab5ed02 100644 --- a/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs +++ b/src/WixToolset.Data/WindowsInstaller/WindowsInstallerTableDefinitions.cs @@ -1732,6 +1732,46 @@ namespace WixToolset.Data.WindowsInstaller symbolIdIsPrimaryKey: false ); + public static readonly TableDefinition WixDependencyProvider = new TableDefinition( + "WixDependencyProvider", + SymbolDefinitions.WixDependencyProvider, + new[] + { + new ColumnDefinition("WixDependencyProvider", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), + new ColumnDefinition("Component_", ColumnType.String, 72, primaryKey: false, nullable: false, ColumnCategory.Identifier, keyTable: "Component", keyColumn: 1, description: "The foreign key into the Component table used to determine install state.", modularizeType: ColumnModularizeType.Column), + new ColumnDefinition("ProviderKey", ColumnType.String, 255, primaryKey: false, nullable: false, ColumnCategory.Text, description: "The name of the registry key that holds the provider identity."), + new ColumnDefinition("Version", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Version, description: "The version of the package."), + new ColumnDefinition("DisplayName", ColumnType.String, 255, primaryKey: false, nullable: true, ColumnCategory.Text, description: "The display name of the package."), + new ColumnDefinition("Attributes", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 2147483647, description: "A 32-bit word that specifies the attribute flags to be applied."), + }, + symbolIdIsPrimaryKey: true + ); + + public static readonly TableDefinition WixDependency = new TableDefinition( + "WixDependency", + SymbolDefinitions.WixDependency, + new[] + { + new ColumnDefinition("WixDependency", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, description: "The non-localized primary key for the table.", modularizeType: ColumnModularizeType.Column), + new ColumnDefinition("ProviderKey", ColumnType.String, 255, primaryKey: false, nullable: false, ColumnCategory.Text, description: "The name of the registry key that holds the provider identity."), + new ColumnDefinition("MinVersion", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Version, description: "The minimum version of the provider supported."), + new ColumnDefinition("MaxVersion", ColumnType.String, 72, primaryKey: false, nullable: true, ColumnCategory.Version, description: "The maximum version of the provider supported."), + new ColumnDefinition("Attributes", ColumnType.Number, 4, primaryKey: false, nullable: true, ColumnCategory.Unknown, minValue: 0, maxValue: 2147483647, description: "A 32-bit word that specifies the attribute flags to be applied."), + }, + symbolIdIsPrimaryKey: true + ); + + public static readonly TableDefinition WixDependencyRef = new TableDefinition( + "WixDependencyRef", + SymbolDefinitions.WixDependencyRef, + new[] + { + new ColumnDefinition("WixDependencyProvider_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "WixDependencyProvider", keyColumn: 1, description: "Foreign key into the Component table.", modularizeType: ColumnModularizeType.Column), + new ColumnDefinition("WixDependency_", ColumnType.String, 72, primaryKey: true, nullable: false, ColumnCategory.Identifier, keyTable: "WixDependency", keyColumn: 1, description: "Foreign key into the WixDependency table.", modularizeType: ColumnModularizeType.Column), + }, + symbolIdIsPrimaryKey: false + ); + public static readonly TableDefinition[] All = new[] { ActionText, @@ -1859,6 +1899,9 @@ namespace WixToolset.Data.WindowsInstaller SummaryInformation, TransformView, Validation, + WixDependency, + WixDependencyProvider, + WixDependencyRef, }; } } -- cgit v1.2.3-55-g6feb