From 8a3ce82d689e16424620e3b52161f19771d19d1d Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 23 Mar 2021 02:44:02 -0700 Subject: Correctly set Compressed, Description, DisplayName in BootstrapperApplicationData Fixes wixtoolset/issues#6371 Fixes wixtoolset/issues#6372 --- .../Bundles/CreateBootstrapperApplicationManifestCommand.cs | 2 +- src/WixToolset.Core/Compiler_Bundle.cs | 8 ++++++-- src/test/WixToolsetTest.CoreIntegration/BundleManifestFixture.cs | 8 ++++---- .../CustomPackageDescription/CustomPackageDescription.wxs | 8 ++++---- 4 files changed, 15 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs index 1fdd76da..f61dce46 100644 --- a/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs +++ b/src/WixToolset.Core.Burn/Bundles/CreateBootstrapperApplicationManifestCommand.cs @@ -129,7 +129,7 @@ namespace WixToolset.Core.Burn.Bundles writer.WriteAttributeString("Permanent", package.PackageSymbol.Permanent ? "yes" : "no"); writer.WriteAttributeString("LogPathVariable", package.PackageSymbol.LogPathVariable); writer.WriteAttributeString("RollbackLogPathVariable", package.PackageSymbol.RollbackLogPathVariable); - writer.WriteAttributeString("Compressed", packagePayload.Compressed == true ? "yes" : "no"); + writer.WriteAttributeString("Compressed", packagePayload.Packaging == PackagingType.Embedded ? "yes" : "no"); if (package.SpecificPackageSymbol is WixBundleMsiPackageSymbol msiPackage) { diff --git a/src/WixToolset.Core/Compiler_Bundle.cs b/src/WixToolset.Core/Compiler_Bundle.cs index cc4550a8..1c79a11b 100644 --- a/src/WixToolset.Core/Compiler_Bundle.cs +++ b/src/WixToolset.Core/Compiler_Bundle.cs @@ -1961,6 +1961,8 @@ namespace WixToolset.Core string installCondition = null; var cache = YesNoAlwaysType.Yes; // the default is to cache everything in tradeoff for stability over disk space. string cacheId = null; + string description = null; + string displayName = null; var logPathVariable = (packageType == WixBundlePackageType.Msu) ? String.Empty : null; var rollbackPathVariable = (packageType == WixBundlePackageType.Msu) ? String.Empty : null; var permanent = YesNoType.NotSet; @@ -2038,10 +2040,10 @@ namespace WixToolset.Core cacheId = this.Core.GetAttributeValue(sourceLineNumbers, attrib); break; case "Description": - compilerPayload.ParseDescription(attrib); + description = this.Core.GetAttributeValue(sourceLineNumbers, attrib); break; case "DisplayName": - compilerPayload.ParseDisplayName(attrib); + displayName = this.Core.GetAttributeValue(sourceLineNumbers, attrib); break; case "EnableFeatureSelection": enableFeatureSelection = this.Core.GetAttributeYesNoValue(sourceLineNumbers, attrib); @@ -2302,6 +2304,8 @@ namespace WixToolset.Core Attributes = attributes, InstallCondition = installCondition, CacheId = cacheId, + Description = description, + DisplayName = displayName, LogPathVariable = logPathVariable, RollbackLogPathVariable = rollbackPathVariable, }); diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleManifestFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleManifestFixture.cs index 7ec3104c..43386789 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleManifestFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleManifestFixture.cs @@ -51,7 +51,7 @@ namespace WixToolsetTest.CoreIntegration } } - [Fact(Skip = "https://github.com/wixtoolset/issues/issues/6372")] + [Fact] public void PopulatesBAManifestWithPackageInformation() { var folder = TestData.Get(@"TestData"); @@ -278,7 +278,7 @@ namespace WixToolsetTest.CoreIntegration } } - [Fact(Skip = "https://github.com/wixtoolset/issues/issues/6370")] + [Fact] public void PopulatesManifestWithExePackages() { var folder = TestData.Get(@"TestData"); @@ -315,8 +315,8 @@ namespace WixToolsetTest.CoreIntegration { "ExePackage", new List { "CacheId", "InstallSize", "Size" } }, }; Assert.Equal(2, exePackageElements.Count); - Assert.Equal("", exePackageElements[0].GetTestXml(ignoreAttributesByElementName)); - Assert.Equal("", exePackageElements[1].GetTestXml(ignoreAttributesByElementName)); + Assert.Equal("", exePackageElements[0].GetTestXml(ignoreAttributesByElementName)); + Assert.Equal("", exePackageElements[1].GetTestXml(ignoreAttributesByElementName)); } } diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomPackageDescription/CustomPackageDescription.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomPackageDescription/CustomPackageDescription.wxs index db8b05f2..10c4f91f 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomPackageDescription/CustomPackageDescription.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomPackageDescription/CustomPackageDescription.wxs @@ -2,11 +2,11 @@ - - - + + + - + -- cgit v1.2.3-55-g6feb