diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-04-27 11:21:34 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2025-06-11 23:34:42 -0400 |
| commit | 7051e6a5fdc8965289fbc34d0de2a78dae14e62e (patch) | |
| tree | 4a6ba3d354089b0abdf1c295a9b79b5e56ea39f1 /src/ext/Bal/test/examples/LatestCoreBundleSCD | |
| parent | fddc154029b838c2fd83a2eee09d53468dd4cf08 (diff) | |
| download | wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.tar.gz wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.tar.bz2 wix-7051e6a5fdc8965289fbc34d0de2a78dae14e62e.zip | |
Add `Payloads` element to harvest bundle payloads.
Implements https://github.com/wixtoolset/issues/issues/9049
Diffstat (limited to 'src/ext/Bal/test/examples/LatestCoreBundleSCD')
3 files changed, 6 insertions, 27 deletions
diff --git a/src/ext/Bal/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj b/src/ext/Bal/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj index 048e3c97..73582984 100644 --- a/src/ext/Bal/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj +++ b/src/ext/Bal/test/examples/LatestCoreBundleSCD/LatestCoreBundleSCD.wixproj | |||
| @@ -1,14 +1,6 @@ | |||
| 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 1 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
| 2 | <Project Sdk="WixToolset.Sdk"> | 2 | <Project Sdk="WixToolset.Sdk"> |
| 3 | <ItemGroup> | 3 | <ItemGroup> |
| 4 | <BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\scd" /> | 4 | <BindInputPaths Include="$(OutputPath)publish\Example.LatestCoreMBA\scd" BindName="ba.payloads" /> |
| 5 | <HarvestDirectory Include="$(OutputPath)publish\Example.LatestCoreMBA\scd"> | ||
| 6 | <DirectoryRefId>publish.Example.LatestCoreMBA.scd</DirectoryRefId> | ||
| 7 | <Transforms>ba.xslt</Transforms> | ||
| 8 | </HarvestDirectory> | ||
| 9 | </ItemGroup> | ||
| 10 | |||
| 11 | <ItemGroup> | ||
| 12 | <PackageReference Include="WixToolset.Heat" /> | ||
| 13 | </ItemGroup> | 5 | </ItemGroup> |
| 14 | </Project> | 6 | </Project> |
diff --git a/src/ext/Bal/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs b/src/ext/Bal/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs index 0022b690..1f379b59 100644 --- a/src/ext/Bal/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs +++ b/src/ext/Bal/test/examples/LatestCoreBundleSCD/SelfContainedBundle.wxs | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> |
| 2 | <Bundle Name="SCDLatestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533"> | 2 | <Bundle Name="SCDLatestCoreMBA" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="5CE5B5C7-4B6B-4B95-B297-731F1F956533"> |
| 3 | <BootstrapperApplication SourceFile="Example.LatestCoreMBA.exe"> | 3 | <BootstrapperApplication SourceFile="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe"> |
| 4 | <!-- <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> --> | 4 | <Payloads Include="!(bindpath.ba.payloads)\**"> |
| 5 | <PayloadGroupRef Id="publish.Example.LatestCoreMBA.scd" /> | 5 | <Exclude Files="!(bindpath.ba.payloads)\Example.LatestCoreMBA.exe" /> |
| 6 | </Payloads> | ||
| 6 | </BootstrapperApplication> | 7 | </BootstrapperApplication> |
| 8 | |||
| 7 | <Chain> | 9 | <Chain> |
| 8 | <ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" /> | 10 | <ExePackage DetectCondition="none" UninstallArguments="-foo" SourceFile="..\.data\notanexe.exe" PerMachine="yes" /> |
| 9 | </Chain> | 11 | </Chain> |
diff --git a/src/ext/Bal/test/examples/LatestCoreBundleSCD/ba.xslt b/src/ext/Bal/test/examples/LatestCoreBundleSCD/ba.xslt deleted file mode 100644 index f606296e..00000000 --- a/src/ext/Bal/test/examples/LatestCoreBundleSCD/ba.xslt +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
| 3 | xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" | ||
| 4 | xmlns:wix="http://wixtoolset.org/schemas/v4/wxs" | ||
| 5 | > | ||
| 6 | <xsl:output method="xml" indent="yes"/> | ||
| 7 | |||
| 8 | <xsl:template match="@* | node()"> | ||
| 9 | <xsl:copy> | ||
| 10 | <xsl:apply-templates select="@* | node()"/> | ||
| 11 | </xsl:copy> | ||
| 12 | </xsl:template> | ||
| 13 | |||
| 14 | <xsl:template match="wix:Payload[@SourceFile='SourceDir\Example.LatestCoreMBA.exe']" /> | ||
| 15 | </xsl:stylesheet> | ||
