diff options
4 files changed, 9 insertions, 5 deletions
diff --git a/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs b/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs index c9917073..989a1b65 100644 --- a/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs +++ b/src/WixToolset.Core.Burn/Bind/BindBundleCommand.cs | |||
| @@ -262,7 +262,7 @@ namespace WixToolset.Core.Burn | |||
| 262 | 262 | ||
| 263 | foreach (var payload in packagePayloads) | 263 | foreach (var payload in packagePayloads) |
| 264 | { | 264 | { |
| 265 | facade.PackageTuple.Size += payload.FileSize; | 265 | facade.PackageTuple.Size += payload.FileSize.Value; |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | if (!facade.PackageTuple.InstallSize.HasValue) | 268 | if (!facade.PackageTuple.InstallSize.HasValue) |
diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs index 5ef75b3e..231be7a5 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs | |||
| @@ -230,7 +230,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 230 | } | 230 | } |
| 231 | 231 | ||
| 232 | writer.WriteAttributeString("Name", payloadTuple.Name); | 232 | writer.WriteAttributeString("Name", payloadTuple.Name); |
| 233 | writer.WriteAttributeString("Size", payloadTuple.FileSize.ToString(CultureInfo.InvariantCulture)); | 233 | writer.WriteAttributeString("Size", payloadTuple.FileSize.Value.ToString(CultureInfo.InvariantCulture)); |
| 234 | 234 | ||
| 235 | if (!String.IsNullOrEmpty(payloadTuple.DownloadUrl)) | 235 | if (!String.IsNullOrEmpty(payloadTuple.DownloadUrl)) |
| 236 | { | 236 | { |
diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs index 58133d38..205bd1f8 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBurnManifestCommand.cs | |||
| @@ -640,7 +640,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 640 | private void WriteBurnManifestContainerAttributes(XmlTextWriter writer, string executableName, WixBundleContainerTuple container) | 640 | private void WriteBurnManifestContainerAttributes(XmlTextWriter writer, string executableName, WixBundleContainerTuple container) |
| 641 | { | 641 | { |
| 642 | writer.WriteAttributeString("Id", container.Id.Id); | 642 | writer.WriteAttributeString("Id", container.Id.Id); |
| 643 | writer.WriteAttributeString("FileSize", container.Size.ToString(CultureInfo.InvariantCulture)); | 643 | writer.WriteAttributeString("FileSize", container.Size.Value.ToString(CultureInfo.InvariantCulture)); |
| 644 | writer.WriteAttributeString("Hash", container.Hash); | 644 | writer.WriteAttributeString("Hash", container.Hash); |
| 645 | 645 | ||
| 646 | if (ContainerType.Detached == container.Type) | 646 | if (ContainerType.Detached == container.Type) |
| @@ -665,7 +665,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 665 | } | 665 | } |
| 666 | 666 | ||
| 667 | writer.WriteAttributeString("FilePath", executableName); // attached containers use the name of the bundle since they are attached to the executable. | 667 | writer.WriteAttributeString("FilePath", executableName); // attached containers use the name of the bundle since they are attached to the executable. |
| 668 | writer.WriteAttributeString("AttachedIndex", container.AttachedContainerIndex.ToString(CultureInfo.InvariantCulture)); | 668 | writer.WriteAttributeString("AttachedIndex", container.AttachedContainerIndex.Value.ToString(CultureInfo.InvariantCulture)); |
| 669 | writer.WriteAttributeString("Attached", "yes"); | 669 | writer.WriteAttributeString("Attached", "yes"); |
| 670 | writer.WriteAttributeString("Primary", "yes"); | 670 | writer.WriteAttributeString("Primary", "yes"); |
| 671 | } | 671 | } |
| @@ -677,7 +677,7 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 677 | 677 | ||
| 678 | writer.WriteAttributeString("Id", payload.Id.Id); | 678 | writer.WriteAttributeString("Id", payload.Id.Id); |
| 679 | writer.WriteAttributeString("FilePath", payload.Name); | 679 | writer.WriteAttributeString("FilePath", payload.Name); |
| 680 | writer.WriteAttributeString("FileSize", payload.FileSize.ToString(CultureInfo.InvariantCulture)); | 680 | writer.WriteAttributeString("FileSize", payload.FileSize.Value.ToString(CultureInfo.InvariantCulture)); |
| 681 | writer.WriteAttributeString("Hash", payload.Hash); | 681 | writer.WriteAttributeString("Hash", payload.Hash); |
| 682 | 682 | ||
| 683 | if (payload.LayoutOnly) | 683 | if (payload.LayoutOnly) |
diff --git a/src/WixToolset.Core.Burn/Bundles/ProcessPayloadsCommand.cs b/src/WixToolset.Core.Burn/Bundles/ProcessPayloadsCommand.cs index 99e361aa..d0c1fdfc 100644 --- a/src/WixToolset.Core.Burn/Bundles/ProcessPayloadsCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/ProcessPayloadsCommand.cs | |||
| @@ -150,6 +150,10 @@ namespace WixToolset.Core.Burn.Bundles | |||
| 150 | } | 150 | } |
| 151 | } | 151 | } |
| 152 | } | 152 | } |
| 153 | else | ||
| 154 | { | ||
| 155 | payload.FileSize = 0; | ||
| 156 | } | ||
| 153 | } | 157 | } |
| 154 | 158 | ||
| 155 | private void UpdatePayloadVersionInformation(WixBundlePayloadTuple payload, IntermediateFieldPathValue sourceFile) | 159 | private void UpdatePayloadVersionInformation(WixBundlePayloadTuple payload, IntermediateFieldPathValue sourceFile) |
