aboutsummaryrefslogtreecommitdiff
path: root/src/test/msi/TestData
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/msi/TestData')
-rw-r--r--src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/ProtocolRules.wixproj13
-rw-r--r--src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/product.wxs23
-rw-r--r--src/test/msi/TestData/FirewallExtensionTests/ScopeRules/ScopeRules.wixproj13
-rw-r--r--src/test/msi/TestData/FirewallExtensionTests/ScopeRules/product.wxs33
4 files changed, 82 insertions, 0 deletions
diff --git a/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/ProtocolRules.wixproj b/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/ProtocolRules.wixproj
new file mode 100644
index 00000000..b1770b0f
--- /dev/null
+++ b/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/ProtocolRules.wixproj
@@ -0,0 +1,13 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <UpgradeCode>{4D188568-1CCF-4EEE-BC27-17C3DCC83E58}</UpgradeCode>
5 <ProductComponentsRef>true</ProductComponentsRef>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <PackageReference Include="WixToolset.Firewall.wixext" />
12 </ItemGroup>
13</Project> \ No newline at end of file
diff --git a/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/product.wxs b/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/product.wxs
new file mode 100644
index 00000000..6a28ad0a
--- /dev/null
+++ b/src/test/msi/TestData/FirewallExtensionTests/ProtocolRules/product.wxs
@@ -0,0 +1,23 @@
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="FirewallComponent1"/>
7 </ComponentGroup>
8 </Fragment>
9
10 <Fragment>
11 <Component Id="FirewallComponent1" Guid="E465C8FE-5B81-4553-9CFC-E0CD96B9A36C" Directory="INSTALLFOLDER">
12 <fw:FirewallException Id="FirewallException09"
13 Description="WiX Toolset firewall exception rule integration test - protocol TCP"
14 Name="WiXToolset401 Test - 0009" Protocol="tcp" Port="900" Scope="any" />
15 <fw:FirewallException Id="FirewallException10"
16 Description="WiX Toolset firewall exception rule integration test - protocol UDP"
17 Name="WiXToolset401 Test - 0010" Protocol="udp" Port="1000" Scope="any" />
18 <fw:FirewallException Id="FirewallException11"
19 Description="WiX Toolset firewall exception rule integration test - ports can only be specified if protocol is TCP or UDP"
20 Name="WiXToolset401 Test - 0011" Protocol="134" Program="test.exe" Scope="any" />
21 </Component>
22 </Fragment>
23</Wix>
diff --git a/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/ScopeRules.wixproj b/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/ScopeRules.wixproj
new file mode 100644
index 00000000..b1770b0f
--- /dev/null
+++ b/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/ScopeRules.wixproj
@@ -0,0 +1,13 @@
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<Project Sdk="WixToolset.Sdk">
3 <PropertyGroup>
4 <UpgradeCode>{4D188568-1CCF-4EEE-BC27-17C3DCC83E58}</UpgradeCode>
5 <ProductComponentsRef>true</ProductComponentsRef>
6 </PropertyGroup>
7 <ItemGroup>
8 <Compile Include="..\..\Templates\Product.wxs" Link="Product.wxs" />
9 </ItemGroup>
10 <ItemGroup>
11 <PackageReference Include="WixToolset.Firewall.wixext" />
12 </ItemGroup>
13</Project> \ No newline at end of file
diff --git a/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/product.wxs b/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/product.wxs
new file mode 100644
index 00000000..776c8675
--- /dev/null
+++ b/src/test/msi/TestData/FirewallExtensionTests/ScopeRules/product.wxs
@@ -0,0 +1,33 @@
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<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall">
5 <Fragment>
6 <ComponentGroup Id="ProductComponents">
7 <ComponentRef Id="FirewallComponent1"/>
8 </ComponentGroup>
9 </Fragment>
10
11 <Fragment>
12 <Component Id="FirewallComponent1" Guid="515AEDF0-A656-4006-8CE5-848ECCC680BD" Directory="INSTALLFOLDER">
13 <fw:FirewallException Id="FirewallException12"
14 Description="WiX Toolset firewall exception rule integration test - scope any"
15 Name="WiXToolset401 Test - 0012" Scope="any" Port="1200" />
16 <fw:FirewallException Id="FirewallException13"
17 Description="WiX Toolset firewall exception rule integration test - scope local subnet"
18 Name="WiXToolset401 Test - 0013" Scope="localSubnet" Port="1300" />
19 <fw:FirewallException Id="FirewallException14"
20 Description="WiX Toolset firewall exception rule integration test - scope DNS"
21 Name="WiXToolset401 Test - 0014" Scope="DNS" Port="1400" />
22 <fw:FirewallException Id="FirewallException15"
23 Description="WiX Toolset firewall exception rule integration test - scope DHCP"
24 Name="WiXToolset401 Test - 0015" Scope="DHCP" Port="1500" />
25 <fw:FirewallException Id="FirewallException16"
26 Description="WiX Toolset firewall exception rule integration test - scope WINS"
27 Name="WiXToolset401 Test - 0016" Scope="WINS" Port="1600" />
28 <fw:FirewallException Id="FirewallException17"
29 Description="WiX Toolset firewall exception rule integration test - scope default gateway"
30 Name="WiXToolset401 Test - 0017" Scope="defaultGateway" Port="1700" />
31 </Component>
32 </Fragment>
33</Wix>