Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
outbound firewall rule
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Sep 23, 2017
1 parent 99a58ea commit 8427a7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/windows/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ Section "Install"
; Set Windows Firewall rule via PowerShell if user checked this option
${If} $AddFirewallRuleCheckbox_State == ${BST_CHECKED}
nsExec::ExecToStack "powershell -Command $\"New-NetFirewallRule -DisplayName '${productName}' -Direction Inbound -Program '$INSTDIR\${exec}' -Action allow$\" "
nsExec::ExecToStack "powershell -Command $\"New-NetFirewallRule -DisplayName '${productName}' -Direction Outbound -Program '$INSTDIR\${exec}' -Action allow$\" "
${EndIf}

; Write EstimatedSize uninstaller registry key
Expand Down

0 comments on commit 8427a7c

Please sign in to comment.