From 7ff59a67c279c2c6a3139b29cb8f0c4ffdc2ea7f Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 4 Apr 2022 10:58:32 -0500 Subject: Fix bug where MSIFASTINSTALL was not set properly for MsiPackages. --- src/wix/WixToolset.Core.Burn/Bundles/ProcessMsiPackageCommand.cs | 3 ++- src/wix/test/WixToolsetTest.CoreIntegration/ContainerFixture.cs | 2 ++ .../TestData/Container/HarvestIntoDetachedContainer.wxs | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/wix/WixToolset.Core.Burn/Bundles/ProcessMsiPackageCommand.cs b/src/wix/WixToolset.Core.Burn/Bundles/ProcessMsiPackageCommand.cs index b950d06c..d9560cb0 100644 --- a/src/wix/WixToolset.Core.Burn/Bundles/ProcessMsiPackageCommand.cs +++ b/src/wix/WixToolset.Core.Burn/Bundles/ProcessMsiPackageCommand.cs @@ -170,7 +170,7 @@ namespace WixToolset.Core.Burn.Bundles this.SetPackageVisibility(systemComponent, msiPackage, msiPropertyNames); // Unless the MSI or setup code overrides the default, set MSIFASTINSTALL for best performance. - if (!String.IsNullOrEmpty(fastInstall)) + if (String.IsNullOrEmpty(fastInstall) && !msiPropertyNames.Contains("MSIFASTINSTALL")) { this.AddMsiProperty(msiPackage, "MSIFASTINSTALL", "7"); } @@ -218,6 +218,7 @@ namespace WixToolset.Core.Burn.Bundles private void SetPerMachineAppropriately(string allusers, WixBundleMsiPackageSymbol msiPackage, string sourcePath) { + // Can ignore ALLUSERS from MsiProperties because it is not allowed there. if (msiPackage.ForcePerMachine) { if (YesNoDefaultType.No == this.Facade.PackageSymbol.PerMachine) diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/ContainerFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/ContainerFixture.cs index 7cfcdded..0abcaffc 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/ContainerFixture.cs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/ContainerFixture.cs @@ -149,6 +149,7 @@ namespace WixToolsetTest.CoreIntegration WixAssert.CompareLineByLine(new string[] { "" + + "" + "" + $"" + "" + @@ -158,6 +159,7 @@ namespace WixToolsetTest.CoreIntegration "", "" + "" + + "" + $"" + "" + "" + diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/Container/HarvestIntoDetachedContainer.wxs b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/Container/HarvestIntoDetachedContainer.wxs index e175a18f..d70399b8 100644 --- a/src/wix/test/WixToolsetTest.CoreIntegration/TestData/Container/HarvestIntoDetachedContainer.wxs +++ b/src/wix/test/WixToolsetTest.CoreIntegration/TestData/Container/HarvestIntoDetachedContainer.wxs @@ -2,7 +2,9 @@ - + + + -- cgit v1.2.3-55-g6feb