LiteFirewall Plugin: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 17: Line 17:


==Usage==
==Usage==
<highlight-nsis>
liteFirewall::AddRule "<application path>" "<rule name>"
liteFirewall::RemoveRule "<application path>" "<rule name>"
</highlight-nsis>
==Sample==
==Sample==
==Download==
==Download==

Revision as of 02:37, 22 July 2011

Link

liteFirewall Plugin Homepage

Background

There have been 3 firewall plugin for NSIS: Firewall-Disabler Plugin, NSIS Simple Firewall Plugin and NsisFirewall Plugin. But all of them has some shortcomings, so I just write one: liteFirewall. It's based on nsisFirewall. Thanks to it's author.

Presentation

liteFirewall is based on nsisFirewall, and it also allows you to perform easily 2 tasks:

  • Add an application to Windows Firewall exception list
  • Remove an application from Windows Firewall exception list

The advantage of liteFirewall compared to nsisFirewall is it can automatically figure out the current profile of windows firewall, and add a corresponding rule for your application.

Usage

liteFirewall::AddRule "<application path>" "<rule name>"
liteFirewall::RemoveRule "<application path>" "<rule name>"

Sample

Download