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

outbound firewall rule #700

Merged
merged 1 commit into from
Sep 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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