diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-12-01 23:02:05 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-12-01 23:02:05 -0600 |
| commit | 5d0434843c6f307a46fa95139c1e754221cc13af (patch) | |
| tree | 559f1714b14c08fa09449b62770c9107fae968c3 /src/TestData/MsiTransaction/BundleAv1 | |
| parent | 86456524fe4640053616f6fc18311159e6fafea5 (diff) | |
| download | wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.gz wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.bz2 wix-5d0434843c6f307a46fa95139c1e754221cc13af.zip | |
Add MSI transaction tests.
Diffstat (limited to 'src/TestData/MsiTransaction/BundleAv1')
| -rw-r--r-- | src/TestData/MsiTransaction/BundleAv1/BundleA.wxi | 19 | ||||
| -rw-r--r-- | src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj | 16 | ||||
| -rw-r--r-- | src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs | 15 |
3 files changed, 50 insertions, 0 deletions
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi b/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi new file mode 100644 index 00000000..83b901cb --- /dev/null +++ b/src/TestData/MsiTransaction/BundleAv1/BundleA.wxi | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <!-- 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. --> | ||
| 3 | |||
| 4 | <?ifndef Version?> | ||
| 5 | <?define Version = 1.0.0.0?> | ||
| 6 | <?endif?> | ||
| 7 | |||
| 8 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 9 | <Bundle Name="~$(var.TestGroupName) - Bundle A" Version="$(var.Version)" UpgradeCode="{90ED10D5-B187-4470-B498-05D80DAB729A}" Compressed="yes"> | ||
| 10 | <Log Prefix="~$(var.TestGroupName)_BundleA"/> | ||
| 11 | |||
| 12 | <Variable Name="TestGroupName" Value="$(var.TestGroupName)" /> | ||
| 13 | |||
| 14 | <Chain> | ||
| 15 | <PackageGroupRef Id="TestBA" /> | ||
| 16 | <PackageGroupRef Id="BundlePackages" /> | ||
| 17 | </Chain> | ||
| 18 | </Bundle> | ||
| 19 | </Include> | ||
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj new file mode 100644 index 00000000..d5845bbe --- /dev/null +++ b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wixproj | |||
| @@ -0,0 +1,16 @@ | |||
| 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"> | ||
| 3 | <PropertyGroup> | ||
| 4 | <OutputType>Bundle</OutputType> | ||
| 5 | </PropertyGroup> | ||
| 6 | <ItemGroup> | ||
| 7 | <ProjectReference Include="..\..\TestBA\TestBAWixlib\testbawixlib.wixproj" /> | ||
| 8 | <ProjectReference Include="..\PackageA\PackageA.wixproj" /> | ||
| 9 | <ProjectReference Include="..\PackageBv1\PackageBv1.wixproj" /> | ||
| 10 | <ProjectReference Include="..\PackageCv1\PackageCv1.wixproj" /> | ||
| 11 | </ItemGroup> | ||
| 12 | <ItemGroup> | ||
| 13 | <PackageReference Include="WixToolset.Bal.wixext" Version="4.0.63" /> | ||
| 14 | <PackageReference Include="WixToolset.NetFx.wixext" Version="4.0.51" /> | ||
| 15 | </ItemGroup> | ||
| 16 | </Project> \ No newline at end of file | ||
diff --git a/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs new file mode 100644 index 00000000..24ef3273 --- /dev/null +++ b/src/TestData/MsiTransaction/BundleAv1/BundleAv1.wxs | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | <?xml version='1.0' encoding='utf-8'?> | ||
| 2 | <!-- 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. --> | ||
| 3 | |||
| 4 | |||
| 5 | <Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'> | ||
| 6 | <?include BundleA.wxi ?> | ||
| 7 | <Fragment> | ||
| 8 | <PackageGroup Id="BundlePackages"> | ||
| 9 | <MsiPackage Id="PackageA" SourceFile="$(var.PackageA.TargetPath)" /> | ||
| 10 | <RollbackBoundary Transaction='yes' /> | ||
| 11 | <MsiPackage Id="PackageB" SourceFile="$(var.PackageBv1.TargetPath)" /> | ||
| 12 | <MsiPackage Id="PackageC" SourceFile="$(var.PackageCv1.TargetPath)" /> | ||
| 13 | </PackageGroup> | ||
| 14 | </Fragment> | ||
| 15 | </Wix> | ||
