github.com/Enlighten-Fund/go-ethereum@v1.9.7/build/nsis.uninstall.nsh (about) 1 Section "Uninstall" 2 # uninstall for all users 3 setShellVarContext all 4 5 # Delete (optionally) installed files 6 {{range $}}Delete $INSTDIR\{{.}} 7 {{end}} 8 Delete $INSTDIR\uninstall.exe 9 10 # Delete install directory 11 rmDir $INSTDIR 12 13 # Delete start menu launcher 14 Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" 15 Delete "$SMPROGRAMS\${APPNAME}\Attach.lnk" 16 Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk" 17 rmDir "$SMPROGRAMS\${APPNAME}" 18 19 # Firewall - remove rules if exists 20 SimpleFC::AdvRemoveRule "Geth incoming peers (TCP:30303)" 21 SimpleFC::AdvRemoveRule "Geth outgoing peers (TCP:30303)" 22 SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)" 23 24 # Remove IPC endpoint (https://github.com/ethereum/EIPs/issues/147) 25 ${un.EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc" 26 27 # Remove install directory from PATH 28 Push "$INSTDIR" 29 Call un.RemoveFromPath 30 31 # Cleanup registry (deletes all sub keys) 32 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" 33 SectionEnd