main
wxs 47 lines 1.71 KB
Raw
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 TestVersion?>
6 <?define TestVersion = 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.TestVersion)" 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>