diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-10-25 02:47:47 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-10-26 13:32:21 -0700 |
| commit | f01d284101e95d490497062c2dc9065423d0cf37 (patch) | |
| tree | 39e5516a836ccd3436c117f790e7c5374e59a6b2 /src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |
| parent | 98bdcfac8bd4f699bc6865abd283f710943e77bc (diff) | |
| download | wix-f01d284101e95d490497062c2dc9065423d0cf37.tar.gz wix-f01d284101e95d490497062c2dc9065423d0cf37.tar.bz2 wix-f01d284101e95d490497062c2dc9065423d0cf37.zip | |
Fix MsiAssembly table processing
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs index 17cac83a..081644cb 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |||
| @@ -60,6 +60,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 60 | output.EnsureTable(this.TableDefinitions["Signature"]); | 60 | output.EnsureTable(this.TableDefinitions["Signature"]); |
| 61 | break; | 61 | break; |
| 62 | 62 | ||
| 63 | case TupleDefinitionType.Assembly: | ||
| 64 | this.AddAssemblyTuple((AssemblyTuple)tuple, output); | ||
| 65 | break; | ||
| 66 | |||
| 63 | case TupleDefinitionType.Binary: | 67 | case TupleDefinitionType.Binary: |
| 64 | this.AddTupleDefaultly(tuple, output, idIsPrimaryKey: true); | 68 | this.AddTupleDefaultly(tuple, output, idIsPrimaryKey: true); |
| 65 | break; | 69 | break; |
| @@ -239,6 +243,19 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 239 | } | 243 | } |
| 240 | } | 244 | } |
| 241 | 245 | ||
| 246 | private void AddAssemblyTuple(AssemblyTuple tuple, Output output) | ||
| 247 | { | ||
| 248 | var attributes = tuple.Type == AssemblyType.Win32Assembly ? 1 : (int?)null; | ||
| 249 | |||
| 250 | var table = output.EnsureTable(this.TableDefinitions["MsiAssembly"]); | ||
| 251 | var row = table.CreateRow(tuple.SourceLineNumbers); | ||
| 252 | row[0] = tuple.ComponentRef; | ||
| 253 | row[1] = tuple.FeatureRef; | ||
| 254 | row[2] = tuple.ManifestFileRef; | ||
| 255 | row[3] = tuple.ApplicationFileRef; | ||
| 256 | row[4] = attributes; | ||
| 257 | } | ||
| 258 | |||
| 242 | private void AddBBControlTuple(BBControlTuple tuple, Output output) | 259 | private void AddBBControlTuple(BBControlTuple tuple, Output output) |
| 243 | { | 260 | { |
| 244 | var attributes = tuple.Attributes; | 261 | var attributes = tuple.Attributes; |
