diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs index f76cd227..cd3a67fa 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |||
| @@ -105,6 +105,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 105 | this.AddMsiEmbeddedUITuple((MsiEmbeddedUITuple)tuple, output); | 105 | this.AddMsiEmbeddedUITuple((MsiEmbeddedUITuple)tuple, output); |
| 106 | break; | 106 | break; |
| 107 | 107 | ||
| 108 | case TupleDefinitionType.MsiFileHash: | ||
| 109 | this.AddMsiFileHashTuple((MsiFileHashTuple)tuple, output); | ||
| 110 | break; | ||
| 111 | |||
| 108 | case TupleDefinitionType.MsiServiceConfig: | 112 | case TupleDefinitionType.MsiServiceConfig: |
| 109 | this.AddMsiServiceConfigTuple((MsiServiceConfigTuple)tuple, output); | 113 | this.AddMsiServiceConfigTuple((MsiServiceConfigTuple)tuple, output); |
| 110 | break; | 114 | break; |
| @@ -500,6 +504,18 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 500 | row[4] = tuple.Source; | 504 | row[4] = tuple.Source; |
| 501 | } | 505 | } |
| 502 | 506 | ||
| 507 | private void AddMsiFileHashTuple(MsiFileHashTuple tuple, Output output) | ||
| 508 | { | ||
| 509 | var table = output.EnsureTable(this.TableDefinitions["MsiFileHash"]); | ||
| 510 | var row = table.CreateRow(tuple.SourceLineNumbers); | ||
| 511 | row[0] = tuple.Id.Id; | ||
| 512 | row[1] = tuple.Options; | ||
| 513 | row[2] = tuple.HashPart1; | ||
| 514 | row[3] = tuple.HashPart2; | ||
| 515 | row[4] = tuple.HashPart3; | ||
| 516 | row[5] = tuple.HashPart4; | ||
| 517 | } | ||
| 518 | |||
| 503 | private void AddMsiServiceConfigTuple(MsiServiceConfigTuple tuple, Output output) | 519 | private void AddMsiServiceConfigTuple(MsiServiceConfigTuple tuple, Output output) |
| 504 | { | 520 | { |
| 505 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; | 521 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; |
