main
wxs 35 lines 1.64 KB
Raw
1 <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall">
2 <Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation"
3 UpgradeCode="41B5F815-E7F6-44E0-B92A-AE95DFF683F9" Compressed="yes" Scope="perMachine">
4 <MediaTemplate EmbedCab="yes" />
5
6 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
7
8 <Feature Id="ProductFeature" Title="Feature with merged modules">
9 <MergeRef Id="TestMsm1" />
10 <MergeRef Id="TestMsm2" />
11 <ComponentRef Id="FirewallComponent1" />
12 </Feature>
13 </Package>
14
15 <Fragment>
16 <StandardDirectory Id="ProgramFilesFolder">
17 <Directory Id="INSTALLFOLDER" Name="MsiPackage">
18 <Merge Id="TestMsm1" Language="1033" SourceFile="Module401.msm" />
19 <Merge Id="TestMsm2" Language="1033" SourceFile="ModuleCurrent.msm" />
20 </Directory>
21 </StandardDirectory>
22 </Fragment>
23
24 <Fragment>
25 <Property Id="MSIPORT1" Value="20001" />
26 <Property Id="MSIPORT2" Value="20002" />
27
28 <Component Id="FirewallComponent1" Guid="3E9A6190-3E6B-4BC2-8C84-D89D1549FEBD" Directory="INSTALLFOLDER">
29 <File Source="$(sys.SOURCEFILEPATH)">
30 <fw:FirewallException Id="FirewallException1" Description="WiX Toolset firewall exception rule integration test - package app" Name="WiXToolset Test - 0026" Scope="any" Port="[MSIPORT1]" />
31 </File>
32 <fw:FirewallException Id="FirewallException2" Description="WiX Toolset firewall exception rule integration test - package port" Name="WiXToolset Test - 0027" Scope="any" Port="[MSIPORT2]" />
33 </Component>
34 </Fragment>
35 </Wix>