mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-31 08:02:03 +00:00
Split removal of configuration files to 2 options.
This commit is contained in:
parent
c6ba3b4ca3
commit
f2f2dad402
@ -29,3 +29,5 @@ LangString remove_registry ${LANG_ENGLISH} "Remove registry keys"
|
|||||||
LangString remove_conf ${LANG_ENGLISH} "Remove configuration files"
|
LangString remove_conf ${LANG_ENGLISH} "Remove configuration files"
|
||||||
;LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
;LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
||||||
LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
LangString remove_firewall ${LANG_ENGLISH} "Remove Windows Firewall rule"
|
||||||
|
;LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
||||||
|
LangString remove_cache ${LANG_ENGLISH} "Remove torrents and cached data"
|
||||||
|
@ -69,11 +69,17 @@ Section "un.$(remove_firewall)" ;
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section /o "un.$(remove_conf)" ;"un.Remove configuration files"
|
Section /o "un.$(remove_conf)" ;"un.Remove configuration files"
|
||||||
|
|
||||||
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_APPDATA}, i0)i.r0'
|
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_APPDATA}, i0)i.r0'
|
||||||
RMDir /r "$1\qBittorrent"
|
RMDir /r "$1\qBittorrent"
|
||||||
|
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section /o "un.$(remove_cache)"
|
||||||
|
|
||||||
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_LOCALAPPDATA}, i0)i.r0'
|
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_LOCALAPPDATA}, i0)i.r0'
|
||||||
RMDir /r "$1\qBittorrent\"
|
RMDir /r "$1\qBittorrent\"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user