Adding a rule to the Windows firewall


Revision as of 11:21, 23 January 2007 by Dean Earley (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

If you want to add you application to the "allowed" list in the Windows firewall, you can make use of the Net.exe application built into windows:

;This is all one line in Inno Setup.
Filename: "{sys}\netsh.exe"; Parameters:
    "firewall add allowedprogram ""{app}\app.exe"" ""My App desc"" ENABLE ALL";
    StatusMsg: "My status msg..."; Flags: runhidden

Please note that this does produce an error about helper DLLs on my machine, but I do not currently have the firewall installed.

Personal tools