@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)

taskkill /f /im utorrent* >NUL 2>NUL

rd/s/q "%AppData%\uTorrent"2>NUL
rd/s/q "%LocalAppData%\BitTorrentHelper"2>NUL
rd/s/q "%UserProfile%\AppData\LocalLow\uTorrent"2>NUL
rd/s/q "%AllUsersProfile%\Application Data\uTorrent"2>NUL
rd/s/q "%UserProfile%\Local Settings\Application Data\uTorrent"2>NUL

reg delete "HKCU\Software\BitTorrentPersist" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\BitTorrent\uTorrent" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\.btapp" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\.btinstall" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\.btkey" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\.btsearch" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\.btskin" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\Applications\uTorrent.exe" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\MIME" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Classes\uTorrent" /f >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.utorrent.native" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/x-bittorrent-app" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/x-bittorrent-appinst" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/x-bittorrent-key" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\MIME\Database\Content Type\application/x-bittorrent-skin" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\GenericSetup_RASAPI32" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\GenericSetup_RASMANCS" /f >NUL 2>NUL
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\WCAssistantService" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\WebCompanionInstaller_RASAPI32" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\WebCompanionInstaller_RASMANCS" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\GenericSetup_RASAPI32" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\GenericSetup_RASMANCS" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\WebCompanionInstaller_RASAPI32" /reg:32 /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Tracing\WebCompanionInstaller_RASMANCS" /f /reg:32 >NUL 2>NUL

reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /f /v "uTorrent" >NUL 2>NUL
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent" /f >NUL 2>NUL
for /f "delims=" %%a in ('wmic userAccount where "Name='%userName%'" get SID /value') do call set "%%a" >NUL
reg delete "HKU\%SID%\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5884684e-2b00-4f2d-8778-a930327412fa}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5884684e-2b00-4f2d-8778-a930327412fa}" /f /reg:32 >NUL 2>NUL

ECHO.&ECHO �Ƴ����ɣ�
TIMEOUT /t 2 >NUL&EXIT