main
wxs 35 lines 1.83 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 <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall">
4 <Fragment>
5 <ComponentGroup Id="ProductComponents">
6 <ComponentRef Id="FirewallComponent3"/>
7 </ComponentGroup>
8
9 <Property Id="RULENAME" Secure="yes" />
10 <CustomAction Id="SetRuleNameDefaultValue" Property="RULENAME" Value="WiXToolset401 Test - 0008 removal" Execute="firstSequence" />
11
12 <InstallExecuteSequence>
13 <Custom Action="SetRuleNameDefaultValue" After="AppSearch" Condition="NOT NORULENAME" />
14 </InstallExecuteSequence>
15
16 </Fragment>
17
18 <Fragment>
19 <Component Id="FirewallComponent3" Guid="AA693149-B39C-4012-9DDE-92AB0CEA2386" Directory="INSTALLFOLDER" Transitive="yes">
20 <File Source="$(sys.SOURCEFILEPATH)" KeyPath="yes" >
21 <fw:FirewallException Id="FirewallException6"
22 Description="WiX Toolset firewall exception rule integration test | ignore failed app properties"
23 Name="WiXToolset401 Test - 0006 pipe" Scope="any" IgnoreFailure="yes" />
24 </File>
25 <fw:FirewallException Id="FirewallException7"
26 Description="WiX Toolset firewall exception rule integration test | ignore failed port properties"
27 Name="WiXToolset401 Test - 0007 pipe" Scope="any" Port="65123" IgnoreFailure="yes" />
28
29 <fw:FirewallException Id="FirewallException8"
30 Description="WiX Toolset firewall exception rule integration test - removal test"
31 Name="[RULENAME]" Scope="any" Port="52390" Program="test.exe"
32 IgnoreFailure="yes" />
33 </Component>
34 </Fragment>
35 </Wix>