@ECHO OFF&PUSHD %~DP0 &TITLE 卸载
Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行！&&Pause >nul&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion

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

regsvr32 /s /u QQMusicApi.dll
regsvr32 /s /u QQMusic_Login.dll
regsvr32 /s /u TXSSO\Bin\SSOCommon.dll
regsvr32 /s /u TXSSO\Bin\SSOLUIControl.dll
regsvr32 /s /u TXSSO\Bin\npSSOAxCtrlForPTLogin.dll
start /wait /B "" "%~dp0QQMusicSvr.exe" /UnRegServer
start /wait /B "" "%~dp0QQMusicAgent.exe" /UnRegMediaFiles

rd/s/q "%AppData%\Tencent\QQMusic"2>NUL
reg delete HKCU\Software\Tencent\QQMusic /F>NUL 2>NUL
reg delete HKLM\Software\Tencent\QQMusic /F>NUL 2>NUL
reg delete HKLM\Software\Wow6432Node\Tencent\QQMusic /F>NUL 2>NUL
rd/s/q "%AppData%\Macromedia\Flash Player\#SharedObjects\MHPJELSJ\imgcache.qq.com"2>NUL

CLS&ECHO.&ECHO.卸载完成！按任意键退出！ &PAUSE >NUL 2>NUL & EXIT