Skip to content

Commit

Permalink
Allow tinyphone via windows firewall (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster authored Apr 12, 2023
1 parent 6635239 commit 01c8d2b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tinyphone-installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<?define ShortcutName = $(var.BaseName) ?>
<?endif?>
<?define ProductVersion=!(bind.FileVersion.TinyPhone.exe)?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension" >
<Product Id="*" Name="$(var.BaseName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="Flipkart India" UpgradeCode="$(var.UpgradeCode)">
<Package InstallerVersion="200" Compressed="yes" Description="$(var.ShortcutName) $(var.ProductVersion) Installer" InstallScope="perMachine" />
<?if $(var.tinyphone.Configuration) != "Debug" ?>
Expand Down Expand Up @@ -66,6 +67,15 @@
<RegistryValue Type="integer" Name="CpuPriorityClass" Value="3"/>
</RegistryKey>
</Component>
<Component Id="cmpFirewallException" Guid="{AE75A17D-3EBF-4B68-AA32-73D18D983319}"
KeyPath="yes">
<fw:FirewallException Id="TinyphoneFirewallException"
Program="[#TinyPhone.exe]"
Description="Allow TinyPhone to communicate"
Name="TinyPhone Firewall Exception"
Scope="any"/>
</Component>

</ComponentGroup>
<ComponentGroup Id="ProductSystemComponents" Directory="SystemFolder" >
<Component Id="DLLComponent" Guid="{AE75A17D-3EBF-4B68-AA32-73D18D983315}">
Expand Down
6 changes: 6 additions & 0 deletions tinyphone-installer/tinyphone-installer.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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' ">
Expand Down

0 comments on commit 01c8d2b

Please sign in to comment.