diff options
| author | chris_bednarski <Chris.Bednarski@minfos.com.au> | 2023-08-21 11:34:51 +1000 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2023-08-26 19:09:59 -0400 |
| commit | e29b4aacf89ce060509b20a5f81df200f7d2fbc1 (patch) | |
| tree | 974188334fce21c60396400075579060ce2df62d /src/test/msi/TestData | |
| parent | b3deb46def7d303a79f4a5eba6a921e45d5f16ef (diff) | |
| download | wix-e29b4aacf89ce060509b20a5f81df200f7d2fbc1.tar.gz wix-e29b4aacf89ce060509b20a5f81df200f7d2fbc1.tar.bz2 wix-e29b4aacf89ce060509b20a5f81df200f7d2fbc1.zip | |
remove windows xp specific code from firewall extension
Diffstat (limited to 'src/test/msi/TestData')
2 files changed, 48 insertions, 0 deletions
diff --git a/src/test/msi/TestData/FirewallExtensionTests/IgnoreFailedFirewallRules/IgnoreFailedFirewallRules.wixproj b/src/test/msi/TestData/FirewallExtensionTests/IgnoreFailedFirewallRules/IgnoreFailedFirewallRules.wixproj new file mode 100644 index 00000000..b1770b0f --- /dev/null +++ b/src/test/msi/TestData/FirewallExtensionTests/IgnoreFailedFirewallRules/IgnoreFailedFirewallRules.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/IgnoreFailedFirewallRules/product.wxs b/src/test/msi/TestData/FirewallExtensionTests/IgnoreFailedFirewallRules/product.wxs new file mode 100644 index 00000000..d615f0c6 --- /dev/null +++ b/src/test/msi/TestData/FirewallExtensionTests/IgnoreFailedFirewallRules/product.wxs | |||
| @@ -0,0 +1,35 @@ | |||
| 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> | ||
