diff options
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; |
