main
wxs 50 lines 1.91 KB
Raw
1 <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2 <Package Name="PackageMissingFeatureComponentMapping" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="12E4699F-E774-4D05-8A01-5BDD41BBA127">
3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
4
5 <StandardDirectory Id="ProgramFiles6432Folder">
6 <Directory Id="INSTALLFOLDER" Name="PackageMissingFeatureComponentMapping">
7 <Directory Id="SubFolder" Name="NotMapped">
8 <Component>
9 <File Source="test.txt" />
10 </Component>
11 </Directory>
12 </Directory>
13 </StandardDirectory>
14
15 <Component Directory="INSTALLFOLDER">
16 <File Source="test.txt" />
17 </Component>
18
19 <ComponentRef Id="ComponentInAFragment" />
20 <ComponentGroupRef Id="ComponentGroupInAFragment" />
21 <FeatureGroupRef Id="FeatureGroupInAFragment" />
22 </Package>
23
24 <Fragment>
25 <ComponentGroup Id="ComponentGroupInAFragment" Directory="INSTALLFOLDER">
26 <Component>
27 <File Name="test2.txt" Source="test.txt" />
28 </Component>
29 </ComponentGroup>
30 </Fragment>
31
32 <Fragment>
33 <!--
34 Keeping the component outside the feature group, to ensure the component
35 comes along for the ride when the empty feature group is referenced.
36 -->
37 <FeatureGroup Id="FeatureGroupInAFragment" />
38
39 <Component Id="AnotherComponentInAFragment" Directory="INSTALLFOLDER">
40 <File Name="test3.txt" Source="test.txt" />
41 <Shortcut Id="AdvertisedShortcut" Advertise="yes" Name="Shortcut" />
42 </Component>
43 </Fragment>
44
45 <Fragment>
46 <Component Id="ComponentInAFragment" Directory="INSTALLFOLDER">
47 <File Name="test4.txt" Source="test.txt" />
48 </Component>
49 </Fragment>
50 </Wix>