@ECHO OFF&PUSHD %~DP0 &TITLE 卸载
taskkill /f /im QQ* >NUL 2>NUL
taskkill /f /im TXP* >NUL 2>NUL
taskkill /f /im tad* >NUL 2>NUL
::清理相关数据
rd /s /q "%ProgramData%\QQPet" 2>NUL
rd /s /q "%AppData%\Tencent\QQ" 2>NUL
rd /s /q "%AppData%\Tencent\TXSSO" 2>NUL
rd /s /q "%AppData%\Tencent\STemp" 2>NUL
rd /s /q "%AppData%\Tencent\Users" 2>NUL
rd /s /q "%AppData%\Tencent\QTalk" 2>NUL
rd /s /q "%AppData%\QQAppAssistant" 2>NUL
rd /s /q "%AppData%\Tencent\QQMiniDL" 2>NUL
rd /s /q "%AppData%\Tencent\DeskUpdate" 2>NUL
rd /s /q "%AppData%\Tencent\QzoneMusic" 2>NUL
rd /s /q "%AppData%\Tencent\AndroidAssist" 2>NUL
rd /s /q "%AppData%\Tencent\QQPhoneManager" 2>NUL
rd /s /q "%ProgramData%\Tencent\QQProtect" 2>NUL
rd /s /q "%UserProFile%\AppData\LocalLow\QQMiniDL" 2>NUL
rd /s /q "%UserProfile%\AppData\Local\Tencent\Misc" 2>NUL
rd /s /q "%AllUsersProfile%\Application Data\QQPet" 2>NUL
rd /s /q "%UserProfile%\AppData\Local\Tencent\QQPet" 2>NUL
rd /s /q "%USERPROFILE%\Local Settings\Tencent\QQPet" 2>NUL
rd /s /q "%USERPROFILE%\Local Settings\QQKartLiveUpdate" 2>NUL
rd /s /q "%AllUsersProfile%\Application Data\Tencent\QQProtect" 2>NUL
::卸载所有控件
regsvr32 /s /u Bin\TXSSO\Bin\SSOCommon.dll
regsvr32 /s /u Bin\TXSSO\Bin\npSSOAxCtrlForPTLogin.dll
regsvr32 /s /u Bin\TXSSO\QzoneMusic\QzoneMusic.dll
regsvr32 /s /u Bin\TXSSO\TXFTN\TXFTNActiveX1.17.dll
if exist Bin\Timwp.dll regsvr32 /s /u Bin\Timwp.dll
if exist Bin\AppCom.dll regsvr32 /s /u Bin\AppCom.dll
if exist Bin\CPHelper.dll regsvr32 /s /u Bin\CPHelper.dll
if exist Bin\TXPFProxy.dll regsvr32 /s /u Bin\TXPFProxy.dll
if exist Bin\KernelUtil.dll regsvr32 /s /u Bin\KernelUtil.dll
if exist Bin\TXPlatform.exe Bin\TXPlatform.exe /UnregServer
regsvr32 /s /u Plugin\Com.Tencent.NetDisk\Bin\QQDisk\Bin\TXFTNActiveX.dll
::删除注册表键值
reg delete HKLM\Software\Classes\QQPet /f >NUL 2>NUL
reg delete HKCU\Software\Tencent\Plugin /f >NUL 2>NUL
reg delete HKCU\Software\Tencent\QQ2009 /f >NUL 2>NUL
reg delete HKLM\Software\Tencent\QQ2009 /f >NUL 2>NUL
reg delete HKCU\Software\Classes\Tencent /f >NUL 2>NUL
reg delete HKLM\Software\Classes\Tencent /f >NUL 2>NUL
reg delete HKCU\Software\Tencent\QQProtect /f >NUL 2>NUL
reg delete HKCU\Software\Classes\EMOTION.File /f >NUL 2>NUL
reg delete HKCU\Software\Classes\EMOTION.Package /f >NUL 2>NUL
reg delete HKCU\Software\Tencent\AndroidAssistant /f >NUL 2>NUL
reg delete HKLM\SOFTWARE\Wow6432Node\Classes\QQPet /f >NUL 2>NUL
reg delete HKLM\Software\Wow6432Node\Tencent\QQ2009 /f >NUL 2>NUL
reg delete HKLM\Software\Wow6432Node\Classes\Tencent /f >NUL 2>NUL
reg delete HKLM\SYSTEM\CurrentControlSet\services\QQProtect /f >NUL 2>NUL
reg delete HKCR\Interface\{D9FEA452-F2BD-4ED4-80FC-7814B46915E5} /f >NUL 2>NUL
reg delete HKLM\Software\Classes\CLSID\{B45AB714-91D3-4F3D-99A2-D8E6827E2914} /f >NUL 2>NUL
reg delete HKLM\Software\Classes\TypeLib\{4560D45A-97D8-47F8-8C0B-09C713FC76F9} /f >NUL 2>NUL
ECHO.&ECHO.完成! &PAUSE >NUL 2>NUL