github.com/core-coin/go-core/v2@v2.1.9/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 "Gocore incoming peers (TCP:30300)"
    21    SimpleFC::AdvRemoveRule "Gocore outgoing peers (TCP:30300)"
    22    SimpleFC::AdvRemoveRule "Gocore UDP discovery (UDP:30300)"
    23  
    24    # Remove IPC endpoint (https://github.com/core-coin/CIPs/issues/147)
    25    ${un.EnvVarUpdate} $0 "CORE_SOCKET" "R" "HKLM" "\\.\pipe\gocore.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