diff options
| author | Rob Mensching <rob@firegiant.com> | 2024-03-27 12:15:44 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2024-04-05 09:46:43 -0700 |
| commit | 6ed045ee1fe69be037a999df2e57122a25f0dedf (patch) | |
| tree | 33b0f815f0009d174f8a3bc4f31d53a54dad0033 /src/test/msi/TestData/CustomActionTests/ManagedCustomActions | |
| parent | 4456c7ab82376a85f362ccb1796075e1e66447d6 (diff) | |
| download | wix-6ed045ee1fe69be037a999df2e57122a25f0dedf.tar.gz wix-6ed045ee1fe69be037a999df2e57122a25f0dedf.tar.bz2 wix-6ed045ee1fe69be037a999df2e57122a25f0dedf.zip | |
Add a managed custom action E2E test
Diffstat (limited to 'src/test/msi/TestData/CustomActionTests/ManagedCustomActions')
| -rw-r--r-- | src/test/msi/TestData/CustomActionTests/ManagedCustomActions/ManagedCustomActions.wixproj | 6 | ||||
| -rw-r--r-- | src/test/msi/TestData/CustomActionTests/ManagedCustomActions/Package.wxs | 32 |
2 files changed, 38 insertions, 0 deletions
diff --git a/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/ManagedCustomActions.wixproj b/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/ManagedCustomActions.wixproj new file mode 100644 index 00000000..c11a7c79 --- /dev/null +++ b/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/ManagedCustomActions.wixproj | |||
| @@ -0,0 +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. --> | ||
| 2 | <Project Sdk="WixToolset.Sdk"> | ||
| 3 | <ItemGroup> | ||
| 4 | <ProjectReference Include="..\TestCA\TestCA.csproj" /> | ||
| 5 | </ItemGroup> | ||
| 6 | </Project> | ||
diff --git a/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/Package.wxs b/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/Package.wxs new file mode 100644 index 00000000..9b1d224a --- /dev/null +++ b/src/test/msi/TestData/CustomActionTests/ManagedCustomActions/Package.wxs | |||
| @@ -0,0 +1,32 @@ | |||
| 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 | |||
| 3 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 4 | <Package Name="~Managed Custom Actions" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="41B5F815-E7F6-44E0-B92A-AE95DFF683F9"> | ||
| 5 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
| 6 | |||
| 7 | <Feature Id="ProductFeature" Title="Feature with merged modules"> | ||
| 8 | <Component Directory="INSTALLFOLDER"> | ||
| 9 | <File Source="$(sys.SOURCEFILEPATH)" /> | ||
| 10 | </Component> | ||
| 11 | </Feature> | ||
| 12 | |||
| 13 | <Binary Id="ManagedCA" SourceFile="TestCA.CA.dll" /> | ||
| 14 | |||
| 15 | <CustomAction Id="ImmediateCA" BinaryRef="ManagedCA" DllEntry="ImmediateCA" Execute="immediate" Return="check" /> | ||
| 16 | <CustomAction Id="DeferredCA" BinaryRef="ManagedCA" DllEntry="DeferredCA" Execute="deferred" Return="check" /> | ||
| 17 | |||
| 18 | <InstallUISequence> | ||
| 19 | <Custom Action="ImmediateCA" Before="CostFinalize" /> | ||
| 20 | </InstallUISequence> | ||
| 21 | |||
| 22 | <InstallExecuteSequence> | ||
| 23 | <Custom Action="DeferredCA" After="InstallFiles" /> | ||
| 24 | </InstallExecuteSequence> | ||
| 25 | </Package> | ||
| 26 | |||
| 27 | <Fragment> | ||
| 28 | <StandardDirectory Id="ProgramFilesFolder"> | ||
| 29 | <Directory Id="INSTALLFOLDER" Name="ManagedCA" /> | ||
| 30 | </StandardDirectory> | ||
| 31 | </Fragment> | ||
| 32 | </Wix> | ||
