Skip to content

Commit ce6205f

Browse files
committed
Remove postgres.exe from Windows Firewall exception list when uninstall
1 parent cc6a7ec commit ce6205f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nsis/postgresql.nsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@ Section $(componentServer) sec1
623623
${ConfigWrite} "$DATA_DIR\pg_hba.conf" "host$\tall$\tall$\t" "0.0.0.0/0$\tmd5" $R0
624624
; Add postgres to Windows Firewall exceptions
625625
nsisFirewall::AddAuthorizedApplication "$INSTDIR\bin\postgres.exe" "PostgresPro server"
626+
626627
pop $0
627628
${else}
628629
!insertmacro _ReplaceInFile "$DATA_DIR\postgresql.conf" "#listen_addresses = 'localhost'" "listen_addresses = 'localhost'"
@@ -957,6 +958,8 @@ Section "Uninstall"
957958

958959
RMDir "$INSTDIR"
959960

961+
nsisFirewall::RemoveAuthorizedApplication "$INSTDIR\bin\postgres.exe"
962+
960963
Call un.DeleteInstallOptions
961964
SetShellVarContext all
962965

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy