@ECHO OFF & CD /D %~DP0 & TITLE 卸载
>NUL 2>&1 REG.exe query "HKU\S-1-5-19" || (
    ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
    ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
    "%TEMP%\Getadmin.vbs"
    DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL
    Exit /b
)
taskkill /f /im QQLive* >NUL 2>NUL
regsvr32 /s /u LiveOcx.dll
regsvr32 /s /u LiveAPI.dll
regsvr32 /s /u LiveLogin.dll
regsvr32 /s /u npQQLive.dll
regsvr32 /s /u QQLive.ocx
start /wait /B "" "%~dp0QQLive.exe" -DelCookie
ping -n 1 127.0.0.1 >NUL 2>NUL
start /wait /B "" "%~dp0QQLive.exe" -clear_p2p_cache
ping -n 1 127.0.0.1 >NUL 2>NUL
start /wait /B "" "%~dp0QQLive.exe" -clear_sso_config
ping -n 1 127.0.0.1 >NUL 2>NUL
start /wait /B "" "%~dp0QQLive.exe" -unreg_video_file
ping -n 2 127.0.0.1 >NUL 2>NUL
start /wait /B "" "%~dp0QQLive.exe" -unregister
ping -n 2 127.0.0.1 >NUL 2>NUL
rd/s/q "%tmp%\QQLive"2>NUL
rd/s/q "%AppData%\Tencent\QQLive"2>NUL
rd/s/q "%ProgramData%\Tencent\QQLive"2>NUL
rd/s/q "%AllUsersProfile%\Application Data\Tencent\QQLive"2>NUL
del /q "%userprofile%\桌面\腾讯视频.lnk" >NUL 2>NUL
del /q "%userprofile%\Desktop\腾讯视频.lnk" >NUL 2>NUL
reg delete HKCR\qqtv /f>NUL 2>NUL
reg delete HKCU\Software\tencent\qqlive /f>NUL 2>NUL
reg delete HKLM\Software\tencent\qqlive /f>NUL 2>NUL
reg delete HKLM\Software\Wow6432Node\tencent\qqlive /f>NUL 2>NUL
reg delete HKLM\Software\Microsoft\MediaPlayer\MediaPlugins\DSPConfig /f>NUL 2>NUL
CLS&ECHO.&ECHO.完成! &PAUSE >NUL 2>NUL&EXIT