diff options
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs')
| -rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs index 6d802d98..5f8df92c 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs | |||
| @@ -241,23 +241,20 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 241 | 241 | ||
| 242 | foreach (var section in this.Intermediate.Sections) | 242 | foreach (var section in this.Intermediate.Sections) |
| 243 | { | 243 | { |
| 244 | for (var i = section.Symbols.Count - 1; i >= 0; i--) | 244 | // Remove all summary information from the symbols and remember those that |
| 245 | // are not calculated or reserved. | ||
| 246 | foreach (var patchSummaryInfo in section.Symbols.OfType<SummaryInformationSymbol>().ToList()) | ||
| 245 | { | 247 | { |
| 246 | if (section.Symbols[i] is SummaryInformationSymbol patchSummaryInfo) | 248 | section.RemoveSymbol(patchSummaryInfo); |
| 249 | |||
| 250 | if (patchSummaryInfo.PropertyId != SummaryInformationType.PatchProductCodes && | ||
| 251 | patchSummaryInfo.PropertyId != SummaryInformationType.PatchCode && | ||
| 252 | patchSummaryInfo.PropertyId != SummaryInformationType.PatchInstallerRequirement && | ||
| 253 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved11 && | ||
| 254 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved14 && | ||
| 255 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved16) | ||
| 247 | { | 256 | { |
| 248 | // Remove all summary information from the symbols and remember those that | 257 | result.Add(patchSummaryInfo.PropertyId, patchSummaryInfo); |
| 249 | // are not calculated or reserved. | ||
| 250 | section.Symbols.RemoveAt(i); | ||
| 251 | |||
| 252 | if (patchSummaryInfo.PropertyId != SummaryInformationType.PatchProductCodes && | ||
| 253 | patchSummaryInfo.PropertyId != SummaryInformationType.PatchCode && | ||
| 254 | patchSummaryInfo.PropertyId != SummaryInformationType.PatchInstallerRequirement && | ||
| 255 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved11 && | ||
| 256 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved14 && | ||
| 257 | patchSummaryInfo.PropertyId != SummaryInformationType.Reserved16) | ||
| 258 | { | ||
| 259 | result.Add(patchSummaryInfo.PropertyId, patchSummaryInfo); | ||
| 260 | } | ||
| 261 | } | 258 | } |
| 262 | } | 259 | } |
| 263 | } | 260 | } |
