diff options
Diffstat (limited to 'src/WixToolset.Core/Compiler_PatchCreation.cs')
-rw-r--r-- | src/WixToolset.Core/Compiler_PatchCreation.cs | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/src/WixToolset.Core/Compiler_PatchCreation.cs b/src/WixToolset.Core/Compiler_PatchCreation.cs index 5994795c..3371d84e 100644 --- a/src/WixToolset.Core/Compiler_PatchCreation.cs +++ b/src/WixToolset.Core/Compiler_PatchCreation.cs | |||
@@ -258,13 +258,13 @@ namespace WixToolset.Core | |||
258 | 258 | ||
259 | if (!this.Core.EncounteredError) | 259 | if (!this.Core.EncounteredError) |
260 | { | 260 | { |
261 | var tuple = new ImageFamiliesTuple(sourceLineNumbers) | 261 | var tuple = this.Core.AddTuple(new ImageFamiliesTuple(sourceLineNumbers) |
262 | { | 262 | { |
263 | Family = name, | 263 | Family = name, |
264 | MediaSrcPropName = mediaSrcProp, | 264 | MediaSrcPropName = mediaSrcProp, |
265 | DiskPrompt = diskPrompt, | 265 | DiskPrompt = diskPrompt, |
266 | VolumeLabel = volumeLabel | 266 | VolumeLabel = volumeLabel |
267 | }; | 267 | }); |
268 | 268 | ||
269 | if (CompilerConstants.IntegerNotSet != diskId) | 269 | if (CompilerConstants.IntegerNotSet != diskId) |
270 | { | 270 | { |
@@ -275,8 +275,6 @@ namespace WixToolset.Core | |||
275 | { | 275 | { |
276 | tuple.FileSequenceStart = sequenceStart; | 276 | tuple.FileSequenceStart = sequenceStart; |
277 | } | 277 | } |
278 | |||
279 | this.Core.AddTuple(tuple); | ||
280 | } | 278 | } |
281 | } | 279 | } |
282 | 280 | ||
@@ -675,16 +673,14 @@ namespace WixToolset.Core | |||
675 | 673 | ||
676 | if (!this.Core.EncounteredError) | 674 | if (!this.Core.EncounteredError) |
677 | { | 675 | { |
678 | var tuple = new TargetFilesOptionalDataTuple(sourceLineNumbers) | 676 | var tuple = this.Core.AddTuple(new TargetFilesOptionalDataTuple(sourceLineNumbers) |
679 | { | 677 | { |
680 | Target = target, | 678 | Target = target, |
681 | FTK = file, | 679 | FTK = file, |
682 | SymbolPaths = symbols, | 680 | SymbolPaths = symbols, |
683 | IgnoreOffsets = ignoreOffsets, | 681 | IgnoreOffsets = ignoreOffsets, |
684 | IgnoreLengths = ignoreLengths | 682 | IgnoreLengths = ignoreLengths, |
685 | }; | 683 | }); |
686 | |||
687 | this.Core.AddTuple(tuple); | ||
688 | 684 | ||
689 | if (null != protectOffsets) | 685 | if (null != protectOffsets) |
690 | { | 686 | { |
@@ -695,7 +691,7 @@ namespace WixToolset.Core | |||
695 | Family = family, | 691 | Family = family, |
696 | FTK = file, | 692 | FTK = file, |
697 | RetainOffsets = protectOffsets, | 693 | RetainOffsets = protectOffsets, |
698 | RetainLengths = protectLengths | 694 | RetainLengths = protectLengths, |
699 | }); | 695 | }); |
700 | } | 696 | } |
701 | } | 697 | } |
@@ -797,15 +793,15 @@ namespace WixToolset.Core | |||
797 | 793 | ||
798 | if (!this.Core.EncounteredError) | 794 | if (!this.Core.EncounteredError) |
799 | { | 795 | { |
800 | var tuple = new ExternalFilesTuple(sourceLineNumbers) | 796 | var tuple = this.Core.AddTuple(new ExternalFilesTuple(sourceLineNumbers) |
801 | { | 797 | { |
802 | Family = family, | 798 | Family = family, |
803 | FTK = file, | 799 | FTK = file, |
804 | FilePath = source, | 800 | FilePath = source, |
805 | SymbolPaths = symbols, | 801 | SymbolPaths = symbols, |
806 | IgnoreOffsets = ignoreOffsets, | 802 | IgnoreOffsets = ignoreOffsets, |
807 | IgnoreLengths = ignoreLengths | 803 | IgnoreLengths = ignoreLengths, |
808 | }; | 804 | }); |
809 | 805 | ||
810 | if (null != protectOffsets) | 806 | if (null != protectOffsets) |
811 | { | 807 | { |
@@ -817,8 +813,6 @@ namespace WixToolset.Core | |||
817 | tuple.Order = order; | 813 | tuple.Order = order; |
818 | } | 814 | } |
819 | 815 | ||
820 | this.Core.AddTuple(tuple); | ||
821 | |||
822 | if (null != protectOffsets) | 816 | if (null != protectOffsets) |
823 | { | 817 | { |
824 | this.Core.AddTuple(new FamilyFileRangesTuple(sourceLineNumbers) | 818 | this.Core.AddTuple(new FamilyFileRangesTuple(sourceLineNumbers) |
@@ -826,7 +820,7 @@ namespace WixToolset.Core | |||
826 | Family = family, | 820 | Family = family, |
827 | FTK = file, | 821 | FTK = file, |
828 | RetainOffsets = protectOffsets, | 822 | RetainOffsets = protectOffsets, |
829 | RetainLengths = protectLengths | 823 | RetainLengths = protectLengths, |
830 | }); | 824 | }); |
831 | } | 825 | } |
832 | } | 826 | } |
@@ -1257,7 +1251,7 @@ namespace WixToolset.Core | |||
1257 | this.Core.Write(ErrorMessages.IllegalAttributeWithOtherAttributes(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "Target", "ProductCode")); | 1251 | this.Core.Write(ErrorMessages.IllegalAttributeWithOtherAttributes(sourceLineNumbers, node.Name.LocalName, attrib.Name.LocalName, "Target", "ProductCode")); |
1258 | } | 1252 | } |
1259 | target = this.Core.GetAttributeValue(sourceLineNumbers, attrib); | 1253 | target = this.Core.GetAttributeValue(sourceLineNumbers, attrib); |
1260 | this.Core.CreateSimpleReference(sourceLineNumbers, "TargetImages", target); | 1254 | this.Core.CreateSimpleReference(sourceLineNumbers, TupleDefinitions.TargetImages, target); |
1261 | break; | 1255 | break; |
1262 | case "Sequence": | 1256 | case "Sequence": |
1263 | sequence = this.Core.GetAttributeVersionValue(sourceLineNumbers, attrib); | 1257 | sequence = this.Core.GetAttributeVersionValue(sourceLineNumbers, attrib); |
@@ -1288,15 +1282,13 @@ namespace WixToolset.Core | |||
1288 | 1282 | ||
1289 | if (!this.Core.EncounteredError) | 1283 | if (!this.Core.EncounteredError) |
1290 | { | 1284 | { |
1291 | var tuple = new PatchSequenceTuple(sourceLineNumbers) | 1285 | this.Core.AddTuple(new PatchSequenceTuple(sourceLineNumbers) |
1292 | { | 1286 | { |
1293 | PatchFamily = family, | 1287 | PatchFamily = family, |
1294 | Target = target, | 1288 | Target = target, |
1295 | Sequence = sequence, | 1289 | Sequence = sequence, |
1296 | Supersede = attributes | 1290 | Supersede = attributes, |
1297 | }; | 1291 | }); |
1298 | |||
1299 | this.Core.AddTuple(tuple); | ||
1300 | } | 1292 | } |
1301 | } | 1293 | } |
1302 | 1294 | ||
@@ -1306,7 +1298,7 @@ namespace WixToolset.Core | |||
1306 | { | 1298 | { |
1307 | Company = company, | 1299 | Company = company, |
1308 | Property = property, | 1300 | Property = property, |
1309 | Value = value | 1301 | Value = value, |
1310 | }); | 1302 | }); |
1311 | } | 1303 | } |
1312 | } | 1304 | } |