@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 AliIM*  >NUL 2>NUL
taskkill /f /im aliedit.exe  >NUL 2>NUL
taskkill /f /im wwbizsrv.exe >NUL 2>NUL
taskkill /f /im TaobaoProtect.exe >NUL 2>NUL

rd/s/q "%AppData%\AliWangWang" 2>NUL

regsvr32 /s "%~dp09.12.12C\AliIMX.dll" 
regsvr32 /s "%~dp09.12.12C\AliIMX_64.dll" 
regsvr32 /s "%~dp09.12.12C\AliIMSSOLogin.dll"
start /wait /B "" "%~dp0AliIM.exe" /removetask
start /wait /B "" "%~dp0AliIM.exe" /cleansdk /nouaccheck
start /wait /B "" "%~dp0AliIM.exe" /addfw
start /wait /B "" "%~dp09.12.12C\EndProcess.exe" IMClient-RV
start /wait /B "" "%~dp09.12.12C\wwbizsrv.exe" /install
start /wait /B "" "%~dp09.12.12C\wwbizsrv.exe" /install /path:"%~dp0"

mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\°¢ÀïÍúÍú.lnk""):b.TargetPath=""%~sdp0AliIM.exe"":b.WorkingDirectory=""%~sdp0"":b.Save:close")

ECHO.&ECHO Íê³É &TIMEOUT /t 2 >NUL&EXIT