qzind / qz-print

Archive for legacy qz-print versions (1.8, 1.9). See https://github.com/qzind/tray for modern versions.
Other
141 stars 101 forks source link

NSIS - Add firewall exception #27

Closed tresf closed 9 years ago

tresf commented 9 years ago

It looks like a 3rd party plugin allows this via http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin.

The idea is to prevent users from seeing this dialog on first load: image

tresf commented 9 years ago

I took the netsh approach as the NSIS approach added an additional DLL dependency and seemed to lack any recent maintenance. The syntax I used is Vista or higher:

netsh.exe advfirewall firewall add rule name="QZ Tray" dir=out action=allow profile=any \
localport=any localip=any protocol=tcp

If we decide to backport this to XP, the syntax will be slightly different as it does not use the advfirewall switch.