mirror of
https://github.com/moonlight-stream/GS-IPv6-Forwarder.git
synced 2026-02-16 02:21:05 +00:00
Add firewall exception in installer
This commit is contained in:
@@ -31,6 +31,12 @@
|
||||
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WixExtension Include="WixFirewallExtension">
|
||||
<HintPath>$(WixExtDir)\WixFirewallExtension.dll</HintPath>
|
||||
<Name>WixFirewallExtension</Name>
|
||||
</WixExtension>
|
||||
</ItemGroup>
|
||||
<Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " />
|
||||
<Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' ">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
|
||||
xmlns:fire="http://schemas.microsoft.com/wix/FirewallExtension">
|
||||
<Product Id="*" Name="IPv6 Forwarder for GS Protocol" Language="1033" Version="0.1.0.0" Manufacturer="Cameron Gutman" UpgradeCode="cae27153-26ed-4da2-8dd5-8cddc7126a05">
|
||||
<Package InstallerVersion="500" Compressed="yes" InstallScope="perMachine" />
|
||||
|
||||
@@ -22,7 +23,11 @@
|
||||
<Fragment>
|
||||
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
|
||||
<Component Id="ProductComponent">
|
||||
<File Source="$(var.GSv6Fwd.TargetPath)" KeyPath="yes"/>
|
||||
<File Source="$(var.GSv6Fwd.TargetPath)" KeyPath="yes">
|
||||
<fire:FirewallException Id="FwException"
|
||||
Scope="any"
|
||||
Name="IPv6 Forwarder for GS Protocol"/>
|
||||
</File>
|
||||
<ServiceInstall Type="ownProcess"
|
||||
Name="GSv6FwdSvc"
|
||||
DisplayName="IPv6 Forwarder for GS Protocol"
|
||||
|
||||
Reference in New Issue
Block a user