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

Commit

Permalink
Merge pull request #700 from littleskunk/firewall
Browse files Browse the repository at this point in the history
outbound firewall rule
  • Loading branch information
littleskunk authored Sep 23, 2017
2 parents 4089908 + 8427a7c commit f09d9e0
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 f09d9e0

Please sign in to comment.