-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add firewall extension decompiler, make msi modifications work, add a…
…ll attributes
- Loading branch information
1 parent
e3cfe9b
commit 23686f5
Showing
35 changed files
with
3,356 additions
and
347 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
485 changes: 457 additions & 28 deletions
485
src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/ext/Firewall/test/WixToolsetTest.Firewall/TestData/UsingProperties/Package.en-us.wxl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- | ||
This file contains the declaration of all the localizable strings. | ||
--> | ||
<WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US"> | ||
|
||
<String Id="DowngradeError" Value="A newer version of [ProductName] is already installed." /> | ||
<String Id="FeatureTitle" Value="MsiPackage" /> | ||
|
||
</WixLocalization> |
15 changes: 15 additions & 0 deletions
15
src/ext/Firewall/test/WixToolsetTest.Firewall/TestData/UsingProperties/Package.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="BB4E61B3-EBE5-4DE7-B3E0-8699B5901D2E"> | ||
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" /> | ||
|
||
<Feature Id="ProductFeature" Title="!(loc.FeatureTitle)"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
</Feature> | ||
</Package> | ||
|
||
<Fragment> | ||
<StandardDirectory Id="ProgramFilesFolder"> | ||
<Directory Id="INSTALLFOLDER" Name="MsiPackage" /> | ||
</StandardDirectory> | ||
</Fragment> | ||
</Wix> |
53 changes: 53 additions & 0 deletions
53
src/ext/Firewall/test/WixToolsetTest.Firewall/TestData/UsingProperties/PackageComponents.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
xmlns:fw="http://wixtoolset.org/schemas/v4/wxs/firewall"> | ||
<Fragment> | ||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | ||
<Component Id="FirewallComponent" Guid="28DF3387-F30E-4DBE-90E2-D2C760CB4DD9"> | ||
<fw:FirewallException | ||
Name="[NAME]" | ||
Port="[LOCALPORT]" | ||
Protocol="[PROTOCOL]" | ||
Program="[PROGRAM]" | ||
Profile="[PROFILE]" | ||
Description="[DESCRIPTION]" | ||
Scope="[REMOTESCOPE]" | ||
Action="[ACTION]" | ||
EdgeTraversal="[EDGETRAVERSAL]" | ||
Enabled="[ENABLED]" | ||
Grouping="[GROUPING]" | ||
IcmpTypesAndCodes="[ICMPTYPES]" | ||
Interface="[INTERFACE]" | ||
InterfaceType="[INTERFACETYPE]" | ||
LocalScope="[LOCALSCOPE]" | ||
RemotePort="[REMOTEPORT]" | ||
Service="[SERVICE]" | ||
LocalAppPackageId="[PACKAGEID]" | ||
LocalUserAuthorizedList="[LOCALUSERS]" | ||
LocalUserOwner="[LOCALOWNER]" | ||
RemoteMachineAuthorizedList="[REMOTEMACHINES]" | ||
RemoteUserAuthorizedList="[REMOTEUSERS]" | ||
IPSecSecureFlags="[SECUREFLAGS]" | ||
/> | ||
|
||
<fw:FirewallException Name="Single Nested properties" > | ||
<fw:RemoteAddress Value="[REMOTEADDRESS]" /> | ||
<fw:LocalAddress Value="[LOCALADDRESS]" /> | ||
<fw:InterfaceType Value="[INTERFACETYPE]" /> | ||
<fw:Interface Name="[INTERFACE]" /> | ||
</fw:FirewallException> | ||
|
||
<fw:FirewallException Name="Multiple Nested properties" > | ||
<fw:RemoteAddress Value="[REMOTEADDRESS1]" /> | ||
<fw:RemoteAddress Value="[REMOTEADDRESS2]" /> | ||
<fw:LocalAddress Value="[LOCALADDRESS1]" /> | ||
<fw:LocalAddress Value="[LOCALADDRESS2]" /> | ||
<fw:InterfaceType Value="[INTERFACETYPE1]" /> | ||
<fw:InterfaceType Value="[INTERFACETYPE2]" /> | ||
<fw:Interface Name="[INTERFACE1]" /> | ||
<fw:Interface Name="[INTERFACE2]" /> | ||
</fw:FirewallException> | ||
</Component> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
1 change: 1 addition & 0 deletions
1
src/ext/Firewall/test/WixToolsetTest.Firewall/TestData/UsingProperties/example.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is example.txt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.