blob: 8fb90fed81da12746605cabe3f9008ab53ca4127 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<!-- 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. -->
<?ifndef TestVersion?>
<?define TestVersion = 1.0.0.0?>
<?endif?>
<?ifndef ProductCode?>
<?define ProductCode = *?>
<?endif?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="~$(var.TestGroupName) - $(var.PackageName)" Language="1033" Version="$(var.TestVersion)" Manufacturer="WixToolset" UpgradeCode="$(var.UpgradeCode)" Compressed="yes" ProductCode="$(var.ProductCode)">
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<?ifndef CabPrefix?>
<MediaTemplate EmbedCab="yes" />
<?else?>
<MediaTemplate CabinetTemplate="{0}$(var.CabPrefix).cab" />
<?endif?>
<Feature Id="Complete" Level="1">
<ComponentRef Id="FileComponent" />
<?ifdef var.ProductComponents?>
<ComponentGroupRef Id="ProductComponents" />
<?endif?>
</Feature>
</Package>
<Fragment>
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="WixDir" Name="~Test WiX">
<Directory Id="TestDir" Name="$(var.TestGroupName)">
<Directory Id="INSTALLFOLDER" Name="$(var.PackageName)" />
</Directory>
</Directory>
</StandardDirectory>
</Fragment>
<Fragment>
<Component Id="FileComponent" Guid="12345678-9ABC-DEF0-1234-567890000000" Directory="INSTALLFOLDER">
<File Id="CAFile" Name="CustomActionFail.exe" Source="$(sys.SOURCEFILEDIR)\CustomActionFail.exe" />
</Component>
<CustomAction Id="CaFail" FileRef="CAFile" Execute="immediate" Return="check" ExeCommand="" />
</Fragment>
</Wix>
|