@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 QQGwp.exe >NUL 2>NUL
taskkill /f /im QQGame* /t >NUL 2>NUL

regsvr32 /s /u MiniGames\CUQG.ocx
regsvr32 /s /u MiniGames\Logic\CAAddins\GInterop.dll

rd/s/q "%UserProfile%\Hlddz"2>NUL
rd/s/q "%AppData%\Tencent\Logs"2>NUL
rd/s/q "%AppData%\Tencent\File"2>NUL
rd/s/q "%AppData%\Tencent\libsdk"2>NUL
rd/s/q "%AppData%\Tencent\QQGame"2>NUL
rd/s/q "%AppData%\Tencent\Config"2>NUL
rd/s/q "%AppData%\Tencent\TenioDL"2>NUL
rd/s/q "%AppData%\Tencent\QQMGBDownload"2>NUL
rd/s/q "%AppData%\Tencent\QQGameTempest"2>NUL
rd/s/q "%AppData%\Tencent\QQMicroGameBox"2>NUL
rd/s/q "%AppData%\Tencent\TxGameAssistant"2>NUL
rd/s/q "%AppData%\Tencent\QQGameAndroidMgr"2>NUL
rd/s/q "%localappdata%\Tencent\QQGameTempest"2>NUL
rd/s/q "%localappdata%\Tencent\BrowsingService"2>NUL

ver|findstr "5\.[0-9]\.[0-9][0-9]*" >NUL && (
del/q "%UserProfile%\桌面\QQ游戏.lnk" >NUL 2>NUL
del/q "%AllUsersProfile%\桌面\QQ游戏.lnk" >NUL 2>NUL
rd/s/q "%UserProfile%\「开始」菜单\程序\腾讯软件\QQ游戏"2>NUL
rd/s/q "%AllUsersProfile%\「开始」菜单\程序\腾讯软件\QQ游戏"2>NUL
rd/s/q "%AllUsersProfile%\Application Data\Tencent\QQGame"2>NUL
)
ver|findstr "\<6\.[0-9]\.[0-9][0-9]*\> \<10\.[0-9]\.[0-9][0-9]*\>" >NUL && (
rd/s/q "%ProgramData%\Tencent\QQGame"2>NUL
del/q "%Public%\Desktop\QQ游戏.lnk" >NUL 2>NUL
del/q "%UserProfile%\Desktop\QQ游戏.lnk" >NUL 2>NUL
rd/s/q "%AppData%\Microsoft\Windows\Start Menu\Programs\腾讯软件\QQ游戏"2>NUL
rd/s/q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\腾讯软件\QQ游戏"2>NUL
)

reg delete "HKCU\SOFTWARE\Tencent\TBS" /F >NUL 2>NUL
reg delete "HKCU\Software\Tencent\QQGame" /F >NUL 2>NUL
reg delete "HKLM\Software\Tencent\QQGame" /F >NUL 2>NUL
reg delete "HKCU\Software\Tencent\QQMicroGameBox" /F >NUL 2>NUL
reg delete "HKLM\Software\Tencent\QQGame" /F /reg:32 >NUL 2>NUL

reg delete "HKCR\AppID\P2PHost.EXE" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\AppID\{97CE68E3-6294-49BB-9482-BAD9604F7321}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\CLSID\{11BEA40D-ED62-4996-B157-B6D9C637F2A5}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\CLSID\{4868AA69-875D-48AE-A7FF-1E6FA1EBBF8D}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\CLSID\{68353829-557C-4906-875B-117F016CD73A}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\CLSID\{B59750C3-29F1-44AA-BFA8-E5F6D3CE8596}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\Interface\{11250DED-D5FF-4F13-A5F3-44D4174A65D1}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\Interface\{9C11AAFA-11F3-4AAF-BF90-DE9DA1DD7E1D}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\Interface\{AA21B901-1642-4AB2-9C1C-A09B2412CC89}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\Interface\{B2167A4F-BC4D-4DA7-90BF-C4BAF7D76714}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\Interface\{B59750C3-29F1-44AA-BFA8-E5F6D3CE8596}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\TypeLib\{1619AA66-FF6E-4CDF-BE0B-983463FF46B2}" /f /reg:32 >NUL 2>NUL
reg delete "HKCR\TypeLib\{5E804802-9BC9-4096-BB0A-42FA90F747DE}" /f /reg:32 >NUL 2>NUL

reg delete "HKLM\SOFTWARE\Classes\metnsd" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\.qgi" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\AppID\{97CE68E3-6294-49BB-9482-BAD9604F7321}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\AppID\P2PHost.EXE" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CUQG.CUQGCtrl.1" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{AA21B901-1642-4AB2-9C1C-A09B2412CC89}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{B2167A4F-BC4D-4DA7-90BF-C4BAF7D76714}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\P2PHost.P2PHost" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\P2PHost.P2PHost.1" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Qgi.Package" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\QQGame" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\QQGameProtocol" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\SOFTWARE\Classes\QQGameProtocol" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\TypeLib\{1619AA66-FF6E-4CDF-BE0B-983463FF46B2}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\TypeLib\{5E804802-9BC9-4096-BB0A-42FA90F747DE}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{11BEA40D-ED62-4996-B157-B6D9C637F2A5}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{4868AA69-875D-48AE-A7FF-1E6FA1EBBF8D}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{68353829-557C-4906-875B-117F016CD73A}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{B59750C3-29F1-44AA-BFA8-E5F6D3CE8596}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{11250DED-D5FF-4F13-A5F3-44D4174A65D1}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{9C11AAFA-11F3-4AAF-BF90-DE9DA1DD7E1D}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{AA21B901-1642-4AB2-9C1C-A09B2412CC89}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{B2167A4F-BC4D-4DA7-90BF-C4BAF7D76714}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\Interface\{B59750C3-29F1-44AA-BFA8-E5F6D3CE8596}" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QQ游戏" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QQ游戏" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QQGame" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\QQGame" /f /reg:32 >NUL 2>NUL

ECHO.&ECHO 清理完成
ECHO.&ECHO 423down.com
TIMEOUT /t 3 >NUL&EXIT