diff options
| author | Bob Arnson <bob@firegiant.com> | 2026-02-04 20:47:04 -0500 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2026-02-04 20:47:04 -0500 |
| commit | edccb203c421d2bd820062024088c6698424d9ee (patch) | |
| tree | 6b47c3eb5ca53bd9f79f3d032dc1a596d411bf38 /src/burn/test/BurnUnitTest/RelatedBundleTest.cpp | |
| parent | a3d3963f806117ce123d95e8b77e73e1c1545b25 (diff) | |
| download | wix-bob/ConfigurableScopeBundles.tar.gz wix-bob/ConfigurableScopeBundles.tar.bz2 wix-bob/ConfigurableScopeBundles.zip | |
Support dual-purpose packages in Burn.bob/ConfigurableScopeBundles
Fixes https://github.com/wixtoolset/issues/issues/8958
Diffstat (limited to '')
| -rw-r--r-- | src/burn/test/BurnUnitTest/RelatedBundleTest.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/burn/test/BurnUnitTest/RelatedBundleTest.cpp b/src/burn/test/BurnUnitTest/RelatedBundleTest.cpp index 9feb85d6..dcccc589 100644 --- a/src/burn/test/BurnUnitTest/RelatedBundleTest.cpp +++ b/src/burn/test/BurnUnitTest/RelatedBundleTest.cpp | |||
| @@ -3,11 +3,7 @@ | |||
| 3 | #include "precomp.h" | 3 | #include "precomp.h" |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | namespace Microsoft | 6 | namespace WixToolset |
| 7 | { | ||
| 8 | namespace Tools | ||
| 9 | { | ||
| 10 | namespace WindowsInstallerXml | ||
| 11 | { | 7 | { |
| 12 | namespace Test | 8 | namespace Test |
| 13 | { | 9 | { |
| @@ -49,7 +45,7 @@ namespace Bootstrapper | |||
| 49 | L" <Payload Id='ux.exe' FilePath='ux.exe' Packaging='embedded' SourcePath='ux.exe' />" | 45 | L" <Payload Id='ux.exe' FilePath='ux.exe' Packaging='embedded' SourcePath='ux.exe' />" |
| 50 | L" </UX>" | 46 | L" </UX>" |
| 51 | L" <RelatedBundle Code='{89FDAE1F-8CC1-48B9-B930-3945E0D3E7F0}' Action='Upgrade' />" | 47 | L" <RelatedBundle Code='{89FDAE1F-8CC1-48B9-B930-3945E0D3E7F0}' Action='Upgrade' />" |
| 52 | L" <Registration Code='{D54F896D-1952-43E6-9C67-B5652240618C}' Tag='foo' ProviderKey='foo' Version='1.0.0.0' ExecutableName='setup.exe' PerMachine='yes'>" | 48 | L" <Registration Code='{D54F896D-1952-43E6-9C67-B5652240618C}' Tag='foo' ProviderKey='foo' Version='1.0.0.0' ExecutableName='setup.exe'>" |
| 53 | L" <Arp Register='yes' Publisher='WiX Toolset' DisplayName='RegisterBasicTest' DisplayVersion='1.0.0.0' />" | 49 | L" <Arp Register='yes' Publisher='WiX Toolset' DisplayName='RegisterBasicTest' DisplayVersion='1.0.0.0' />" |
| 54 | L" </Registration>" | 50 | L" </Registration>" |
| 55 | L"</Bundle>"; | 51 | L"</Bundle>"; |
| @@ -63,7 +59,7 @@ namespace Bootstrapper | |||
| 63 | hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); | 59 | hr = RegistrationParseFromXml(®istration, &cache, pixeBundle); |
| 64 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); | 60 | TestThrowOnFailure(hr, L"Failed to parse registration from XML."); |
| 65 | 61 | ||
| 66 | RelatedBundlesInitializeForScope(registration.fPerMachine, ®istration, &relatedBundles); | 62 | RelatedBundlesInitializeForScope(/*registration.fPlannedPerMachineScope*/TRUE, ®istration, &relatedBundles); |
| 67 | 63 | ||
| 68 | Assert::Equal(1lu, relatedBundles.cRelatedBundles); | 64 | Assert::Equal(1lu, relatedBundles.cRelatedBundles); |
| 69 | 65 | ||
| @@ -101,7 +97,7 @@ namespace Bootstrapper | |||
| 101 | L" <Payload Id='ux.exe' FilePath='ux.exe' Packaging='embedded' SourcePath='ux.exe' />" | 97 | L" <Payload Id='ux.exe' FilePath='ux.exe' Packaging='embedded' SourcePath='ux.exe' />" |
| 102 | L" </UX>" | 98 | L" </UX>" |
| 103 | L" <RelatedBundle Code='{89FDAE1F-8CC1-48B9-B930-3945E0D3E7F0}' Action='Upgrade' />" | 99 | L" <RelatedBundle Code='{89FDAE1F-8CC1-48B9-B930-3945E0D3E7F0}' Action='Upgrade' />" |
| 104 | L" <Registration Code='{3DB49D3D-1FB8-4147-A465-BBE8BFD0DAD0}' Tag='foo' ProviderKey='foo' Version='4.0.0.0' ExecutableName='setup.exe' PerMachine='no'>" | 100 | L" <Registration Code='{3DB49D3D-1FB8-4147-A465-BBE8BFD0DAD0}' Tag='foo' ProviderKey='foo' Version='4.0.0.0' ExecutableName='setup.exe'>" |
| 105 | L" <Arp Register='yes' Publisher='WiX Toolset' DisplayName='RegisterBasicTest' DisplayVersion='4.0.0.0' />" | 101 | L" <Arp Register='yes' Publisher='WiX Toolset' DisplayName='RegisterBasicTest' DisplayVersion='4.0.0.0' />" |
| 106 | L" </Registration>" | 102 | L" </Registration>" |
| 107 | L"</Bundle>"; | 103 | L"</Bundle>"; |
| @@ -195,5 +191,3 @@ namespace Bootstrapper | |||
| 195 | } | 191 | } |
| 196 | } | 192 | } |
| 197 | } | 193 | } |
| 198 | } | ||
| 199 | } | ||
