Skip to content
⌘ NSIS Forum Archive

Add program to Firewall Exception List

6 posts

jweinraub#

Add program to Firewall Exception List

Is there a way for the installer to add itself to the firewall exception list?

my program connects to an Ethernet device, and if the WinXP Firewall is on, the program won't work.

I assume Windows will allow the user to grant this? If possible that is.

Thanks!
kichik#
Use either of these two:


TrifonovS#
Hi,

I used the first plug-in to add an application to the firewall exclude list, but I always get error and the application is not added. First I checked if the service is running as it is suggested:

SimpleFC::IsFirewallServiceRunning

It returns information that the service is running. Then I try to add an application:

SimpleFC::AddApplication "My Application" "PathToApplication" 0 2 "" 1
Pop $0

But $0 returns always 1 and the application is not added.

Any ideas?
TrifonovS#
I solved my problem. The parameter "PathToApplication" must contain not only the path to application, but also the name of the application.
Now all works fine!