mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
da20785685
Former-commit-id: 23f542f43b4b493e38f5aa4c29788ed93a63b43b [formerly 71b23a6a28eb045fcfeab6329de69f1e5455486b] Former-commit-id: d12b3a6decc876f010a71f98e11df7387c1aaf2a
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
Section "Uninstall"
|
|
# uninstall for all users
|
|
setShellVarContext all
|
|
|
|
# Delete (optionally) installed files
|
|
{{range $}}Delete $INSTDIR\{{.}}
|
|
{{end}}
|
|
Delete $INSTDIR\uninstall.exe
|
|
|
|
# Delete install directory
|
|
rmDir $INSTDIR
|
|
|
|
# Delete start menu launcher
|
|
Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
|
Delete "$SMPROGRAMS\${APPNAME}\Attach.lnk"
|
|
Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk"
|
|
rmDir "$SMPROGRAMS\${APPNAME}"
|
|
|
|
# Firewall - remove rules if exists
|
|
SimpleFC::AdvRemoveRule "Geth incoming peers (TCP:30303)"
|
|
SimpleFC::AdvRemoveRule "Geth outgoing peers (TCP:30303)"
|
|
SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)"
|
|
|
|
# Remove IPC endpoint (https://github.com/ethereum/EIPs/issues/147)
|
|
${un.EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc"
|
|
|
|
# Remove install directory from PATH
|
|
Push "$INSTDIR"
|
|
Call un.RemoveFromPath
|
|
|
|
# Cleanup registry (deletes all sub keys)
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}"
|
|
SectionEnd
|