Support adding of windows firewall rule.

This commit is contained in:
sledgehammer999
2013-01-27 19:57:20 +02:00
parent ccce8f58c9
commit feadedf8ef
3 changed files with 16 additions and 0 deletions

View File

@@ -62,6 +62,12 @@ Section "un.$(remove_registry)" ;"un.Remove registry keys"
DeleteRegKey HKLM "Software\qbittorrent"
SectionEnd
Section "un.$(remove_firewall)" ;
nsisFirewall::RemoveAuthorizedApplication "$INSTDIR\qbittorrent.exe"
SectionEnd
Section /o "un.$(remove_conf)" ;"un.Remove configuration files"
System::Call 'shell32::SHGetSpecialFolderPath(i $HWNDPARENT, t .r1, i ${CSIDL_APPDATA}, i0)i.r0'
RMDir /r "$1\qBittorrent"