@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 Youku*  >NUL 2>NUL
taskkill /f /im ikuacc* >NUL 2>NUL
regsvr32 /s /u "cmc_plugins\report.dll"
regsvr32 /s /u "cmc_plugins\ykcool.dll"
regsvr32 /s /u "cmc_plugins\coreplay.dll"
regsvr32 /s /u "cmc_plugins\npYoukuAgent.dll"
regsvr32 /s /u "cmc_plugins\X64\ykcool64.dll"
regsvr32 /s /u "cmc_plugins\X64\coreplay64.dll"
regsvr32 /s /u "cmc_plugins\X64\npYoukuAgent64.dll"
net stop WebServe >NUL 2>NUL
sc delete WebServe >NUL 2>NUL
rd /s /q "pdf.dll" >NUL  2>NUL 
ping 127.0.0.1 /n 3 >NUL 2>NUL&rd/s/q "%AppData%\youku"2>NUL
ping 127.0.0.1 /n 3 >NUL 2>NUL&rd/s/q "%AppData%\ytmediacenter"2>NUL
reg delete "HKCU\Software\YouKu" /f >NUL  2>NUL 
reg delete "HKCU\Software\MozillaPlugins\youku.com/YoukuAgent" /f >NUL  2>NUL 
reg delete "HKCU\Software\MozillaPlugins\youku.com/YoukuAgent_x86_64" /f >NUL  2>NUL 
reg delete "HKCU\Software\Classes\MIME\Database\Content Type\application/x-youkuagent" /f >NUL  2>NUL 
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YoukuClient" /f >NUL  2>NUL 
reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\YoukuClient" /f >NUL  2>NUL 
del /q "%userprofile%\桌面\优酷视频.lnk" >NUL  2>NUL 
del /q "%userprofile%\Desktop\优酷视频.lnk" >NUL  2>NUL 
CLS && ECHO.&ECHO 卸载完成！ &&PAUSE>NUL  & EXIT