Firewall exception

Common questions about using Actual Installer.
Post Reply
AKP
Posts: 11
Joined: Fri May 14, 2021 7:55 pm

Firewall exception

Post by AKP »

Hello

How can I use the installer to add my application to the Windows Firewall exceptions?
I found the following, but how to do it with the installer?

Code: Select all

netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Firewall exception

Post by Leo »

Try the following examples on the System / Commands page:

Code: Select all

File: 		powershell.exe
Parameters: 	netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes

Code: Select all

File: 		<SystemDir>\WindowsPowerShell\v1.0\powershell.exe
Parameters: 	netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes
Leo,
Actual Installer Team
https://www.actualinstaller.com
AKP
Posts: 11
Joined: Fri May 14, 2021 7:55 pm

Re: Firewall exception

Post by AKP »

Do you have to put the variables in quotation marks?

Code: Select all

netsh advfirewall firewall add rule name=<AppName> dir=in action=allow program=<MainExecutable> enable=yes
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: Firewall exception

Post by Leo »

yes
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply