github.com/sunblockterminal/go-sunblocktediuma@v0.0.0-20210616083421-160a35ed7cfa/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 "Gsbt incoming peers (TCP:33560)" 21 SimpleFC::AdvRemoveRule "Gsbt outgoing peers (TCP:33560)" 22 SimpleFC::AdvRemoveRule "Gsbt UDP discovery (UDP:33560)" 23 24 # Remove IPC endpoint (https://github.com/sunblockterminal/EIPs/issues/147) 25 ${un.EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\gsbt.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