github.com/aquanetwork/aquachain@v1.7.8/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 "AquaChain incoming peers (TCP:21303)" 21 SimpleFC::AdvRemoveRule "AquaChain outgoing peers (TCP:21303)" 22 SimpleFC::AdvRemoveRule "AquaChain UDP discovery (UDP:21303)" 23 24 # Remove IPC endpoint (https://github.com/aquanetwork/EIPs/issues/147) 25 ${un.EnvVarUpdate} $0 "AquaChain_SOCKET" "R" "HKLM" "\\.\pipe\aquachain.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