diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-10-26 13:40:49 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-10-26 13:56:11 -0700 |
| commit | 6eab6255f832007886c4b01861dc39d5582177ef (patch) | |
| tree | cb3e11ad38046ed74eede94126c9923e4dfc287b /src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |
| parent | f01d284101e95d490497062c2dc9065423d0cf37 (diff) | |
| download | wix-6eab6255f832007886c4b01861dc39d5582177ef.tar.gz wix-6eab6255f832007886c4b01861dc39d5582177ef.tar.bz2 wix-6eab6255f832007886c4b01861dc39d5582177ef.zip | |
Update to WindowsInstallerData rename from Data
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs index 081644cb..d7056bb8 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |||
| @@ -36,11 +36,11 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 36 | 36 | ||
| 37 | private IntermediateSection Section { get; } | 37 | private IntermediateSection Section { get; } |
| 38 | 38 | ||
| 39 | public Output Output { get; private set; } | 39 | public WindowsInstallerData Output { get; private set; } |
| 40 | 40 | ||
| 41 | public void Execute() | 41 | public void Execute() |
| 42 | { | 42 | { |
| 43 | var output = new Output(this.Section.Tuples.First().SourceLineNumbers); | 43 | var output = new WindowsInstallerData(this.Section.Tuples.First().SourceLineNumbers); |
| 44 | output.Codepage = this.Section.Codepage; | 44 | output.Codepage = this.Section.Codepage; |
| 45 | output.Type = SectionTypeToOutputType(this.Section.Type); | 45 | output.Type = SectionTypeToOutputType(this.Section.Type); |
| 46 | 46 | ||
| @@ -49,7 +49,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 49 | this.Output = output; | 49 | this.Output = output; |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | private void AddSectionToOutput(IntermediateSection section, Output output) | 52 | private void AddSectionToOutput(IntermediateSection section, WindowsInstallerData output) |
| 53 | { | 53 | { |
| 54 | foreach (var tuple in section.Tuples) | 54 | foreach (var tuple in section.Tuples) |
| 55 | { | 55 | { |
| @@ -243,7 +243,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 243 | } | 243 | } |
| 244 | } | 244 | } |
| 245 | 245 | ||
| 246 | private void AddAssemblyTuple(AssemblyTuple tuple, Output output) | 246 | private void AddAssemblyTuple(AssemblyTuple tuple, WindowsInstallerData output) |
| 247 | { | 247 | { |
| 248 | var attributes = tuple.Type == AssemblyType.Win32Assembly ? 1 : (int?)null; | 248 | var attributes = tuple.Type == AssemblyType.Win32Assembly ? 1 : (int?)null; |
| 249 | 249 | ||
| @@ -256,7 +256,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 256 | row[4] = attributes; | 256 | row[4] = attributes; |
| 257 | } | 257 | } |
| 258 | 258 | ||
| 259 | private void AddBBControlTuple(BBControlTuple tuple, Output output) | 259 | private void AddBBControlTuple(BBControlTuple tuple, WindowsInstallerData output) |
| 260 | { | 260 | { |
| 261 | var attributes = tuple.Attributes; | 261 | var attributes = tuple.Attributes; |
| 262 | attributes |= tuple.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0; | 262 | attributes |= tuple.Enabled ? WindowsInstallerConstants.MsidbControlAttributesEnabled : 0; |
| @@ -281,7 +281,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 281 | row[8] = tuple.Text; | 281 | row[8] = tuple.Text; |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | private void AddClassTuple(ClassTuple tuple, Output output) | 284 | private void AddClassTuple(ClassTuple tuple, WindowsInstallerData output) |
| 285 | { | 285 | { |
| 286 | var table = output.EnsureTable(this.TableDefinitions["Class"]); | 286 | var table = output.EnsureTable(this.TableDefinitions["Class"]); |
| 287 | var row = table.CreateRow(tuple.SourceLineNumbers); | 287 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| @@ -300,7 +300,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 300 | row[12] = tuple.RelativePath ? (int?)1 : null; | 300 | row[12] = tuple.RelativePath ? (int?)1 : null; |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | private void AddControlTuple(ControlTuple tuple, Output output) | 303 | private void AddControlTuple(ControlTuple tuple, WindowsInstallerData output) |
| 304 | { | 304 | { |
| 305 | var text = tuple.Text; | 305 | var text = tuple.Text; |
| 306 | var attributes = tuple.Attributes; | 306 | var attributes = tuple.Attributes; |
| @@ -340,7 +340,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 340 | row[10] = tuple.Help; | 340 | row[10] = tuple.Help; |
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | private void AddComponentTuple(ComponentTuple tuple, Output output) | 343 | private void AddComponentTuple(ComponentTuple tuple, WindowsInstallerData output) |
| 344 | { | 344 | { |
| 345 | var attributes = ComponentLocation.Either == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesOptional : 0; | 345 | var attributes = ComponentLocation.Either == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesOptional : 0; |
| 346 | attributes |= ComponentLocation.SourceOnly == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesSourceOnly : 0; | 346 | attributes |= ComponentLocation.SourceOnly == tuple.Location ? WindowsInstallerConstants.MsidbComponentAttributesSourceOnly : 0; |
| @@ -365,7 +365,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 365 | row[5] = tuple.KeyPath; | 365 | row[5] = tuple.KeyPath; |
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | private void AddCustomActionTuple(CustomActionTuple tuple, Output output) | 368 | private void AddCustomActionTuple(CustomActionTuple tuple, WindowsInstallerData output) |
| 369 | { | 369 | { |
| 370 | var type = tuple.Win64 ? WindowsInstallerConstants.MsidbCustomActionType64BitScript : 0; | 370 | var type = tuple.Win64 ? WindowsInstallerConstants.MsidbCustomActionType64BitScript : 0; |
| 371 | type |= tuple.IgnoreResult ? WindowsInstallerConstants.MsidbCustomActionTypeContinue : 0; | 371 | type |= tuple.IgnoreResult ? WindowsInstallerConstants.MsidbCustomActionTypeContinue : 0; |
| @@ -401,7 +401,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 401 | row[4] = tuple.PatchUninstall ? (int?)WindowsInstallerConstants.MsidbCustomActionTypePatchUninstall : null; | 401 | row[4] = tuple.PatchUninstall ? (int?)WindowsInstallerConstants.MsidbCustomActionTypePatchUninstall : null; |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | private void AddDialogTuple(DialogTuple tuple, Output output) | 404 | private void AddDialogTuple(DialogTuple tuple, WindowsInstallerData output) |
| 405 | { | 405 | { |
| 406 | var attributes = tuple.Visible ? WindowsInstallerConstants.MsidbDialogAttributesVisible : 0; | 406 | var attributes = tuple.Visible ? WindowsInstallerConstants.MsidbDialogAttributesVisible : 0; |
| 407 | attributes|= tuple.Modal ? WindowsInstallerConstants.MsidbDialogAttributesModal : 0; | 407 | attributes|= tuple.Modal ? WindowsInstallerConstants.MsidbDialogAttributesModal : 0; |
| @@ -431,7 +431,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 431 | output.EnsureTable(this.TableDefinitions["ListBox"]); | 431 | output.EnsureTable(this.TableDefinitions["ListBox"]); |
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | private void AddDirectoryTuple(DirectoryTuple tuple, Output output) | 434 | private void AddDirectoryTuple(DirectoryTuple tuple, WindowsInstallerData output) |
| 435 | { | 435 | { |
| 436 | var sourceName = GetMsiFilenameValue(tuple.SourceShortName, tuple.SourceName); | 436 | var sourceName = GetMsiFilenameValue(tuple.SourceShortName, tuple.SourceName); |
| 437 | var targetName = GetMsiFilenameValue(tuple.ShortName, tuple.Name); | 437 | var targetName = GetMsiFilenameValue(tuple.ShortName, tuple.Name); |
| @@ -450,7 +450,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 450 | row[2] = defaultDir; | 450 | row[2] = defaultDir; |
| 451 | } | 451 | } |
| 452 | 452 | ||
| 453 | private void AddEnvironmentTuple(EnvironmentTuple tuple, Output output) | 453 | private void AddEnvironmentTuple(EnvironmentTuple tuple, WindowsInstallerData output) |
| 454 | { | 454 | { |
| 455 | var action = String.Empty; | 455 | var action = String.Empty; |
| 456 | var system = tuple.System ? "*" : String.Empty; | 456 | var system = tuple.System ? "*" : String.Empty; |
| @@ -488,7 +488,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 488 | row[3] = tuple.ComponentRef; | 488 | row[3] = tuple.ComponentRef; |
| 489 | } | 489 | } |
| 490 | 490 | ||
| 491 | private void AddFeatureTuple(FeatureTuple tuple, Output output) | 491 | private void AddFeatureTuple(FeatureTuple tuple, WindowsInstallerData output) |
| 492 | { | 492 | { |
| 493 | var attributes = tuple.DisallowAbsent ? WindowsInstallerConstants.MsidbFeatureAttributesUIDisallowAbsent : 0; | 493 | var attributes = tuple.DisallowAbsent ? WindowsInstallerConstants.MsidbFeatureAttributesUIDisallowAbsent : 0; |
| 494 | attributes |= tuple.DisallowAdvertise ? WindowsInstallerConstants.MsidbFeatureAttributesDisallowAdvertise : 0; | 494 | attributes |= tuple.DisallowAdvertise ? WindowsInstallerConstants.MsidbFeatureAttributesDisallowAdvertise : 0; |
| @@ -508,7 +508,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 508 | row[7] = attributes; | 508 | row[7] = attributes; |
| 509 | } | 509 | } |
| 510 | 510 | ||
| 511 | private void AddFileTuple(FileTuple tuple, Output output) | 511 | private void AddFileTuple(FileTuple tuple, WindowsInstallerData output) |
| 512 | { | 512 | { |
| 513 | var table = output.EnsureTable(this.TableDefinitions["File"]); | 513 | var table = output.EnsureTable(this.TableDefinitions["File"]); |
| 514 | var row = (FileRow)table.CreateRow(tuple.SourceLineNumbers); | 514 | var row = (FileRow)table.CreateRow(tuple.SourceLineNumbers); |
| @@ -537,7 +537,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 537 | } | 537 | } |
| 538 | } | 538 | } |
| 539 | 539 | ||
| 540 | private void AddIniFileTuple(IniFileTuple tuple, Output output) | 540 | private void AddIniFileTuple(IniFileTuple tuple, WindowsInstallerData output) |
| 541 | { | 541 | { |
| 542 | var tableName = (InifFileActionType.AddLine == tuple.Action || InifFileActionType.AddTag == tuple.Action || InifFileActionType.CreateLine == tuple.Action) ? "IniFile" : "RemoveIniFile"; | 542 | var tableName = (InifFileActionType.AddLine == tuple.Action || InifFileActionType.AddTag == tuple.Action || InifFileActionType.CreateLine == tuple.Action) ? "IniFile" : "RemoveIniFile"; |
| 543 | 543 | ||
| @@ -553,7 +553,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 553 | row[7] = tuple.ComponentRef; | 553 | row[7] = tuple.ComponentRef; |
| 554 | } | 554 | } |
| 555 | 555 | ||
| 556 | private void AddMediaTuple(MediaTuple tuple, Output output) | 556 | private void AddMediaTuple(MediaTuple tuple, WindowsInstallerData output) |
| 557 | { | 557 | { |
| 558 | if (this.Section.Type != SectionType.Module) | 558 | if (this.Section.Type != SectionType.Module) |
| 559 | { | 559 | { |
| @@ -568,7 +568,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 568 | } | 568 | } |
| 569 | } | 569 | } |
| 570 | 570 | ||
| 571 | private void AddModuleConfigurationTuple(ModuleConfigurationTuple tuple, Output output) | 571 | private void AddModuleConfigurationTuple(ModuleConfigurationTuple tuple, WindowsInstallerData output) |
| 572 | { | 572 | { |
| 573 | var table = output.EnsureTable(this.TableDefinitions["ModuleConfiguration"]); | 573 | var table = output.EnsureTable(this.TableDefinitions["ModuleConfiguration"]); |
| 574 | var row = table.CreateRow(tuple.SourceLineNumbers); | 574 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| @@ -585,7 +585,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 585 | row[9] = tuple.HelpKeyword; | 585 | row[9] = tuple.HelpKeyword; |
| 586 | } | 586 | } |
| 587 | 587 | ||
| 588 | private void AddMsiEmbeddedUITuple(MsiEmbeddedUITuple tuple, Output output) | 588 | private void AddMsiEmbeddedUITuple(MsiEmbeddedUITuple tuple, WindowsInstallerData output) |
| 589 | { | 589 | { |
| 590 | var attributes = tuple.EntryPoint ? WindowsInstallerConstants.MsidbEmbeddedUI : 0; | 590 | var attributes = tuple.EntryPoint ? WindowsInstallerConstants.MsidbEmbeddedUI : 0; |
| 591 | attributes |= tuple.SupportsBasicUI ? WindowsInstallerConstants.MsidbEmbeddedHandlesBasic : 0; | 591 | attributes |= tuple.SupportsBasicUI ? WindowsInstallerConstants.MsidbEmbeddedHandlesBasic : 0; |
| @@ -599,7 +599,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 599 | row[4] = tuple.Source; | 599 | row[4] = tuple.Source; |
| 600 | } | 600 | } |
| 601 | 601 | ||
| 602 | private void AddMsiFileHashTuple(MsiFileHashTuple tuple, Output output) | 602 | private void AddMsiFileHashTuple(MsiFileHashTuple tuple, WindowsInstallerData output) |
| 603 | { | 603 | { |
| 604 | var table = output.EnsureTable(this.TableDefinitions["MsiFileHash"]); | 604 | var table = output.EnsureTable(this.TableDefinitions["MsiFileHash"]); |
| 605 | var row = table.CreateRow(tuple.SourceLineNumbers); | 605 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| @@ -611,7 +611,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 611 | row[5] = tuple.HashPart4; | 611 | row[5] = tuple.HashPart4; |
| 612 | } | 612 | } |
| 613 | 613 | ||
| 614 | private void AddMsiServiceConfigTuple(MsiServiceConfigTuple tuple, Output output) | 614 | private void AddMsiServiceConfigTuple(MsiServiceConfigTuple tuple, WindowsInstallerData output) |
| 615 | { | 615 | { |
| 616 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; | 616 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; |
| 617 | events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; | 617 | events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; |
| @@ -627,7 +627,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 627 | row[5] = tuple.ComponentRef; | 627 | row[5] = tuple.ComponentRef; |
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | private void AddMsiServiceConfigFailureActionsTuple(MsiServiceConfigFailureActionsTuple tuple, Output output) | 630 | private void AddMsiServiceConfigFailureActionsTuple(MsiServiceConfigFailureActionsTuple tuple, WindowsInstallerData output) |
| 631 | { | 631 | { |
| 632 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; | 632 | var events = tuple.OnInstall ? WindowsInstallerConstants.MsidbServiceConfigEventInstall : 0; |
| 633 | events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; | 633 | events |= tuple.OnReinstall ? WindowsInstallerConstants.MsidbServiceConfigEventReinstall : 0; |
| @@ -646,7 +646,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 646 | row[8] = tuple.ComponentRef; | 646 | row[8] = tuple.ComponentRef; |
| 647 | } | 647 | } |
| 648 | 648 | ||
| 649 | private void AddMoveFileTuple(MoveFileTuple tuple, Output output) | 649 | private void AddMoveFileTuple(MoveFileTuple tuple, WindowsInstallerData output) |
| 650 | { | 650 | { |
| 651 | var table = output.EnsureTable(this.TableDefinitions["MoveFile"]); | 651 | var table = output.EnsureTable(this.TableDefinitions["MoveFile"]); |
| 652 | var row = table.CreateRow(tuple.SourceLineNumbers); | 652 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| @@ -659,7 +659,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 659 | row[6] = tuple.Delete ? WindowsInstallerConstants.MsidbMoveFileOptionsMove : 0; | 659 | row[6] = tuple.Delete ? WindowsInstallerConstants.MsidbMoveFileOptionsMove : 0; |
| 660 | } | 660 | } |
| 661 | 661 | ||
| 662 | private void AddPropertyTuple(PropertyTuple tuple, Output output) | 662 | private void AddPropertyTuple(PropertyTuple tuple, WindowsInstallerData output) |
| 663 | { | 663 | { |
| 664 | if (String.IsNullOrEmpty(tuple.Value)) | 664 | if (String.IsNullOrEmpty(tuple.Value)) |
| 665 | { | 665 | { |
| @@ -672,7 +672,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 672 | row.Value = tuple.Value; | 672 | row.Value = tuple.Value; |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | private void AddRemoveFileTuple(RemoveFileTuple tuple, Output output) | 675 | private void AddRemoveFileTuple(RemoveFileTuple tuple, WindowsInstallerData output) |
| 676 | { | 676 | { |
| 677 | var installMode = tuple.OnInstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnInstall : 0; | 677 | var installMode = tuple.OnInstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnInstall : 0; |
| 678 | installMode |= tuple.OnUninstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnRemove : 0; | 678 | installMode |= tuple.OnUninstall == true ? WindowsInstallerConstants.MsidbRemoveFileInstallModeOnRemove : 0; |
| @@ -686,7 +686,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 686 | row[4] = installMode; | 686 | row[4] = installMode; |
| 687 | } | 687 | } |
| 688 | 688 | ||
| 689 | private void AddRegistryTuple(RegistryTuple tuple, Output output) | 689 | private void AddRegistryTuple(RegistryTuple tuple, WindowsInstallerData output) |
| 690 | { | 690 | { |
| 691 | var value = tuple.Value; | 691 | var value = tuple.Value; |
| 692 | 692 | ||
| @@ -738,7 +738,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 738 | row[5] = tuple.ComponentRef; | 738 | row[5] = tuple.ComponentRef; |
| 739 | } | 739 | } |
| 740 | 740 | ||
| 741 | private void AddRegLocatorTuple(RegLocatorTuple tuple, Output output) | 741 | private void AddRegLocatorTuple(RegLocatorTuple tuple, WindowsInstallerData output) |
| 742 | { | 742 | { |
| 743 | var type = (int)tuple.Type; | 743 | var type = (int)tuple.Type; |
| 744 | type |= tuple.Win64 ? WindowsInstallerConstants.MsidbLocatorType64bit : 0; | 744 | type |= tuple.Win64 ? WindowsInstallerConstants.MsidbLocatorType64bit : 0; |
| @@ -752,7 +752,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 752 | row[4] = type; | 752 | row[4] = type; |
| 753 | } | 753 | } |
| 754 | 754 | ||
| 755 | private void AddRemoveRegistryTuple(RemoveRegistryTuple tuple, Output output) | 755 | private void AddRemoveRegistryTuple(RemoveRegistryTuple tuple, WindowsInstallerData output) |
| 756 | { | 756 | { |
| 757 | if (tuple.Action == RemoveRegistryActionType.RemoveOnInstall) | 757 | if (tuple.Action == RemoveRegistryActionType.RemoveOnInstall) |
| 758 | { | 758 | { |
| @@ -776,7 +776,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 776 | } | 776 | } |
| 777 | } | 777 | } |
| 778 | 778 | ||
| 779 | private void AddServiceControlTuple(ServiceControlTuple tuple, Output output) | 779 | private void AddServiceControlTuple(ServiceControlTuple tuple, WindowsInstallerData output) |
| 780 | { | 780 | { |
| 781 | var events = tuple.InstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventDelete : 0; | 781 | var events = tuple.InstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventDelete : 0; |
| 782 | events |= tuple.UninstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventUninstallDelete : 0; | 782 | events |= tuple.UninstallRemove ? WindowsInstallerConstants.MsidbServiceControlEventUninstallDelete : 0; |
| @@ -795,7 +795,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 795 | row[5] = tuple.ComponentRef; | 795 | row[5] = tuple.ComponentRef; |
| 796 | } | 796 | } |
| 797 | 797 | ||
| 798 | private void AddServiceInstallTuple(ServiceInstallTuple tuple, Output output) | 798 | private void AddServiceInstallTuple(ServiceInstallTuple tuple, WindowsInstallerData output) |
| 799 | { | 799 | { |
| 800 | var errorControl = (int)tuple.ErrorControl; | 800 | var errorControl = (int)tuple.ErrorControl; |
| 801 | errorControl |= tuple.Vital ? WindowsInstallerConstants.MsidbServiceInstallErrorControlVital : 0; | 801 | errorControl |= tuple.Vital ? WindowsInstallerConstants.MsidbServiceInstallErrorControlVital : 0; |
| @@ -820,7 +820,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 820 | row[12] = tuple.Description; | 820 | row[12] = tuple.Description; |
| 821 | } | 821 | } |
| 822 | 822 | ||
| 823 | private void AddShortcutTuple(ShortcutTuple tuple, Output output) | 823 | private void AddShortcutTuple(ShortcutTuple tuple, WindowsInstallerData output) |
| 824 | { | 824 | { |
| 825 | var table = output.EnsureTable(this.TableDefinitions["Shortcut"]); | 825 | var table = output.EnsureTable(this.TableDefinitions["Shortcut"]); |
| 826 | var row = table.CreateRow(tuple.SourceLineNumbers); | 826 | var row = table.CreateRow(tuple.SourceLineNumbers); |
| @@ -842,7 +842,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 842 | row[15] = tuple.DescriptionResourceId; | 842 | row[15] = tuple.DescriptionResourceId; |
| 843 | } | 843 | } |
| 844 | 844 | ||
| 845 | private void AddTextStyleTuple(TextStyleTuple tuple, Output output) | 845 | private void AddTextStyleTuple(TextStyleTuple tuple, WindowsInstallerData output) |
| 846 | { | 846 | { |
| 847 | var styleBits = tuple.Bold ? WindowsInstallerConstants.MsidbTextStyleStyleBitsBold : 0; | 847 | var styleBits = tuple.Bold ? WindowsInstallerConstants.MsidbTextStyleStyleBitsBold : 0; |
| 848 | styleBits |= tuple.Italic ? WindowsInstallerConstants.MsidbTextStyleStyleBitsItalic : 0; | 848 | styleBits |= tuple.Italic ? WindowsInstallerConstants.MsidbTextStyleStyleBitsItalic : 0; |
| @@ -867,7 +867,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 867 | row[4] = styleBits == 0 ? null : (int?)styleBits; | 867 | row[4] = styleBits == 0 ? null : (int?)styleBits; |
| 868 | } | 868 | } |
| 869 | 869 | ||
| 870 | private void AddUpgradeTuple(UpgradeTuple tuple, Output output) | 870 | private void AddUpgradeTuple(UpgradeTuple tuple, WindowsInstallerData output) |
| 871 | { | 871 | { |
| 872 | var table = output.EnsureTable(this.TableDefinitions["Upgrade"]); | 872 | var table = output.EnsureTable(this.TableDefinitions["Upgrade"]); |
| 873 | var row = (UpgradeRow)table.CreateRow(tuple.SourceLineNumbers); | 873 | var row = (UpgradeRow)table.CreateRow(tuple.SourceLineNumbers); |
| @@ -887,7 +887,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 887 | row.Attributes = attributes; | 887 | row.Attributes = attributes; |
| 888 | } | 888 | } |
| 889 | 889 | ||
| 890 | private void AddWixActionTuple(WixActionTuple tuple, Output output) | 890 | private void AddWixActionTuple(WixActionTuple tuple, WindowsInstallerData output) |
| 891 | { | 891 | { |
| 892 | // Get the table definition for the action (and ensure the proper table exists for a module). | 892 | // Get the table definition for the action (and ensure the proper table exists for a module). |
| 893 | TableDefinition sequenceTableDefinition = null; | 893 | TableDefinition sequenceTableDefinition = null; |
| @@ -977,7 +977,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 977 | } | 977 | } |
| 978 | } | 978 | } |
| 979 | 979 | ||
| 980 | private void AddWixCustomRowTuple(WixCustomRowTuple tuple, Output output) | 980 | private void AddWixCustomRowTuple(WixCustomRowTuple tuple, WindowsInstallerData output) |
| 981 | { | 981 | { |
| 982 | var customTableDefinition = this.TableDefinitions[tuple.Table]; | 982 | var customTableDefinition = this.TableDefinitions[tuple.Table]; |
| 983 | 983 | ||
| @@ -1058,13 +1058,13 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 1058 | } | 1058 | } |
| 1059 | } | 1059 | } |
| 1060 | 1060 | ||
| 1061 | private void AddWixEnsureTableTuple(WixEnsureTableTuple tuple, Output output) | 1061 | private void AddWixEnsureTableTuple(WixEnsureTableTuple tuple, WindowsInstallerData output) |
| 1062 | { | 1062 | { |
| 1063 | var tableDefinition = this.TableDefinitions[tuple.Table]; | 1063 | var tableDefinition = this.TableDefinitions[tuple.Table]; |
| 1064 | output.EnsureTable(tableDefinition); | 1064 | output.EnsureTable(tableDefinition); |
| 1065 | } | 1065 | } |
| 1066 | 1066 | ||
| 1067 | private void AddWixMediaTemplateTuple(WixMediaTemplateTuple tuple, Output output) | 1067 | private void AddWixMediaTemplateTuple(WixMediaTemplateTuple tuple, WindowsInstallerData output) |
| 1068 | { | 1068 | { |
| 1069 | var table = output.EnsureTable(this.TableDefinitions["WixMediaTemplate"]); | 1069 | var table = output.EnsureTable(this.TableDefinitions["WixMediaTemplate"]); |
| 1070 | var row = (WixMediaTemplateRow)table.CreateRow(tuple.SourceLineNumbers); | 1070 | var row = (WixMediaTemplateRow)table.CreateRow(tuple.SourceLineNumbers); |
| @@ -1076,7 +1076,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 1076 | row.MaximumCabinetSizeForLargeFileSplitting = tuple.MaximumCabinetSizeForLargeFileSplitting ?? MaxValueOfMaxCabSizeForLargeFileSplitting; | 1076 | row.MaximumCabinetSizeForLargeFileSplitting = tuple.MaximumCabinetSizeForLargeFileSplitting ?? MaxValueOfMaxCabSizeForLargeFileSplitting; |
| 1077 | } | 1077 | } |
| 1078 | 1078 | ||
| 1079 | private void AddTupleFromExtension(IntermediateTuple tuple, Output output) | 1079 | private void AddTupleFromExtension(IntermediateTuple tuple, WindowsInstallerData output) |
| 1080 | { | 1080 | { |
| 1081 | foreach (var extension in this.BackendExtensions) | 1081 | foreach (var extension in this.BackendExtensions) |
| 1082 | { | 1082 | { |
| @@ -1087,7 +1087,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 1087 | } | 1087 | } |
| 1088 | } | 1088 | } |
| 1089 | 1089 | ||
| 1090 | private void AddTupleDefaultly(IntermediateTuple tuple, Output output, bool idIsPrimaryKey = false, string tableName = null) | 1090 | private void AddTupleDefaultly(IntermediateTuple tuple, WindowsInstallerData output, bool idIsPrimaryKey = false, string tableName = null) |
| 1091 | { | 1091 | { |
| 1092 | if (!this.TableDefinitions.TryGet(tableName ?? tuple.Definition.Name, out var tableDefinition)) | 1092 | if (!this.TableDefinitions.TryGet(tableName ?? tuple.Definition.Name, out var tableDefinition)) |
| 1093 | { | 1093 | { |
