Some work about adaptive color scheme for Web UI (PR #19901)
http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
3.5 KiB
127 lines
3.5 KiB
4 years ago
|
Section "un.$(remove_files)" ;"un.Remove files"
|
||
12 years ago
|
SectionIn RO
|
||
8 years ago
|
|
||
|
; Remove files and uninstaller
|
||
12 years ago
|
Delete "$INSTDIR\qbittorrent.exe"
|
||
12 years ago
|
Delete "$INSTDIR\qbittorrent.pdb"
|
||
8 years ago
|
Delete "$INSTDIR\qt.conf"
|
||
12 years ago
|
Delete "$INSTDIR\uninst.exe"
|
||
8 years ago
|
|
||
|
; Remove directories used
|
||
12 years ago
|
RMDir /r "$INSTDIR\translations"
|
||
|
RMDir "$INSTDIR"
|
||
|
SectionEnd
|
||
|
|
||
|
Section "un.$(remove_shortcuts)" ;"un.Remove shortcuts"
|
||
|
SectionIn RO
|
||
|
; Remove shortcuts, if any
|
||
|
RMDir /r "$SMPROGRAMS\qBittorrent"
|
||
|
Delete "$DESKTOP\qBittorrent.lnk"
|
||
|
SectionEnd
|
||
|
|
||
10 years ago
|
Section "un.$(remove_associations)" ;"un.Remove file associations"
|
||
|
SectionIn RO
|
||
|
ReadRegStr $0 HKLM "Software\Classes\.torrent" ""
|
||
|
StrCmp $0 "qBittorrent" 0 torrent_end
|
||
|
DetailPrint "$(uninst_tor_warn) $0"
|
||
|
DeleteRegValue HKLM "Software\Classes\.torrent" ""
|
||
|
DeleteRegKey /ifempty HKLM "Software\Classes\.torrent"
|
||
|
torrent_end:
|
||
1 year ago
|
|
||
10 years ago
|
ReadRegStr $0 HKLM "Software\Classes\magnet\shell\open\command" ""
|
||
|
StrCmp $0 '"$INSTDIR\qbittorrent.exe" "%1"' 0 magnet_end
|
||
|
DetailPrint "$(uninst_mag_warn) $0"
|
||
|
DeleteRegKey HKLM "Software\Classes\magnet"
|
||
|
magnet_end:
|
||
1 year ago
|
|
||
10 years ago
|
!insertmacro UAC_AsUser_Call Function un.remove_associations_user ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR}
|
||
8 years ago
|
|
||
1 year ago
|
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, p 0, p 0)'
|
||
10 years ago
|
SectionEnd
|
||
|
|
||
|
Function un.remove_associations_user
|
||
|
ReadRegStr $0 HKCU "Software\Classes\.torrent" ""
|
||
|
StrCmp $0 "qBittorrent" 0 torrent_end
|
||
|
DetailPrint "$(uninst_tor_warn) $0"
|
||
|
DeleteRegValue HKCU "Software\Classes\.torrent" ""
|
||
|
DeleteRegKey /ifempty HKCU "Software\Classes\.torrent"
|
||
|
torrent_end:
|
||
1 year ago
|
|
||
10 years ago
|
ReadRegStr $0 HKCU "Software\Classes\magnet\shell\open\command" ""
|
||
|
StrCmp $0 '"$INSTDIR\qbittorrent.exe" "%1"' 0 magnet_end
|
||
|
DetailPrint "$(uninst_mag_warn) $0"
|
||
|
DeleteRegKey HKCU "Software\Classes\magnet"
|
||
|
magnet_end:
|
||
|
FunctionEnd
|
||
|
|
||
8 years ago
|
Section "un.$(remove_registry)" ;"un.Remove registry keys"
|
||
|
SectionIn RO
|
||
12 years ago
|
; Remove registry keys
|
||
11 years ago
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\qBittorrent"
|
||
|
DeleteRegKey HKLM "Software\qBittorrent"
|
||
|
DeleteRegKey HKLM "Software\Classes\qBittorrent"
|
||
8 years ago
|
|
||
1 year ago
|
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, p 0, p 0)'
|
||
12 years ago
|
SectionEnd
|
||
|
|
||
12 years ago
|
Section "un.$(remove_firewall)" ;
|
||
|
|
||
12 years ago
|
DetailPrint $(remove_firewallinfo)
|
||
12 years ago
|
nsisFirewallW::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
|
||
8 years ago
|
|
||
12 years ago
|
SectionEnd
|
||
|
|
||
12 years ago
|
Section /o "un.$(remove_conf)" ;"un.Remove configuration files"
|
||
12 years ago
|
|
||
10 years ago
|
!insertmacro UAC_AsUser_Call Function un.remove_conf_user ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR}
|
||
|
|
||
12 years ago
|
SectionEnd
|
||
|
|
||
10 years ago
|
Function un.remove_conf_user
|
||
|
|
||
|
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_APPDATA}, i0)i.r0'
|
||
|
RMDir /r "$1\qBittorrent"
|
||
|
|
||
|
FunctionEnd
|
||
|
|
||
|
Section /o "un.$(remove_cache)"
|
||
|
|
||
|
!insertmacro UAC_AsUser_Call Function un.remove_cache_user ${UAC_SYNCREGISTERS}|${UAC_SYNCOUTDIR}|${UAC_SYNCINSTDIR}
|
||
|
|
||
|
SectionEnd
|
||
|
|
||
|
Function un.remove_cache_user
|
||
|
|
||
12 years ago
|
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_LOCALAPPDATA}, i0)i.r0'
|
||
|
RMDir /r "$1\qBittorrent\"
|
||
10 years ago
|
|
||
|
FunctionEnd
|
||
12 years ago
|
|
||
|
;--------------------------------
|
||
|
;Uninstaller Functions
|
||
|
|
||
|
Function un.onInit
|
||
|
|
||
10 years ago
|
!insertmacro Init "uninstaller"
|
||
12 years ago
|
!insertmacro MUI_UNGETLANGUAGE
|
||
8 years ago
|
|
||
12 years ago
|
FunctionEnd
|
||
12 years ago
|
|
||
|
Function un.check_instance
|
||
|
|
||
|
check:
|
||
|
FindProcDLL::FindProc "qbittorrent.exe"
|
||
|
StrCmp $R0 "1" 0 notfound
|
||
|
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION $(uninst_warning) IDRETRY check IDCANCEL done
|
||
|
|
||
|
done:
|
||
|
Abort
|
||
8 years ago
|
|
||
12 years ago
|
notfound:
|
||
8 years ago
|
|
||
12 years ago
|
FunctionEnd
|
||
8 years ago
|
|
||
|
Function un.onUninstSuccess
|
||
|
SetErrorLevel 0
|
||
|
FunctionEnd
|