diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-04-28 21:02:23 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-04-29 00:23:14 -0500 |
commit | 5b04bce6567855325810bc4e6bcd2f6e05b329c7 (patch) | |
tree | a36e140d36c83a2ef7e81a88d941dd792bef3f55 /src/test/msi/TestData/Templates | |
parent | 681da11cfc9a266304b47b88843cb8a365015c63 (diff) | |
download | wix-5b04bce6567855325810bc4e6bcd2f6e05b329c7.tar.gz wix-5b04bce6567855325810bc4e6bcd2f6e05b329c7.tar.bz2 wix-5b04bce6567855325810bc4e6bcd2f6e05b329c7.zip |
Port UtilExtension.UserTests from wix3.
Diffstat (limited to 'src/test/msi/TestData/Templates')
-rw-r--r-- | src/test/msi/TestData/Templates/CustomActionFail.exe | bin | 0 -> 4608 bytes | |||
-rw-r--r-- | src/test/msi/TestData/Templates/Product.wxs | 47 |
2 files changed, 47 insertions, 0 deletions
diff --git a/src/test/msi/TestData/Templates/CustomActionFail.exe b/src/test/msi/TestData/Templates/CustomActionFail.exe new file mode 100644 index 00000000..cceffe91 --- /dev/null +++ b/src/test/msi/TestData/Templates/CustomActionFail.exe | |||
Binary files differ | |||
diff --git a/src/test/msi/TestData/Templates/Product.wxs b/src/test/msi/TestData/Templates/Product.wxs new file mode 100644 index 00000000..c7604c1b --- /dev/null +++ b/src/test/msi/TestData/Templates/Product.wxs | |||
@@ -0,0 +1,47 @@ | |||
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 | |||
4 | |||
5 | <?ifndef Version?> | ||
6 | <?define Version = 1.0.0.0?> | ||
7 | <?endif?> | ||
8 | |||
9 | <?ifndef ProductCode?> | ||
10 | <?define ProductCode = *?> | ||
11 | <?endif?> | ||
12 | |||
13 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
14 | <Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.Version)" Manufacturer="WixToolset" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)"> | ||
15 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
16 | <?ifndef CabPrefix?> | ||
17 | <MediaTemplate EmbedCab="yes" /> | ||
18 | <?else?> | ||
19 | <MediaTemplate CabinetTemplate="{0}$(var.CabPrefix).cab" /> | ||
20 | <?endif?> | ||
21 | |||
22 | <Feature Id="Complete" Level="1"> | ||
23 | <ComponentRef Id="FileComponent" /> | ||
24 | <?ifdef var.ProductComponents?> | ||
25 | <ComponentGroupRef Id="ProductComponents" /> | ||
26 | <?endif?> | ||
27 | </Feature> | ||
28 | </Package> | ||
29 | |||
30 | <Fragment> | ||
31 | <StandardDirectory Id="ProgramFiles6432Folder"> | ||
32 | <Directory Id="WixDir" Name="~Test WiX"> | ||
33 | <Directory Id="TestDir" Name="$(var.TestGroupName)"> | ||
34 | <Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" /> | ||
35 | </Directory> | ||
36 | </Directory> | ||
37 | </StandardDirectory> | ||
38 | </Fragment> | ||
39 | |||
40 | <Fragment> | ||
41 | <Component Id="FileComponent" Guid="12345678-9ABC-DEF0-1234-567890000000" Directory="INSTALLFOLDER"> | ||
42 | <File Id="CAFile" Name="CustomActionFail.exe" Source="$(sys.SOURCEFILEDIR)\CustomActionFail.exe" /> | ||
43 | </Component> | ||
44 | |||
45 | <CustomAction Id="CaFail" FileRef="CAFile" Execute="immediate" Return="check" ExeCommand="" /> | ||
46 | </Fragment> | ||
47 | </Wix> | ||