@echo off

reg add "HKEY_CURRENT_USER\Software\Tencent\WeChat" /v "NeedUpdateType" /t reg_dword /d "0" /f

del /f /q %USERPROFILE%\AppData\Roaming\Tencent\WeChat\"All Users"\config\update.data

md %USERPROFILE%\AppData\Roaming\Tencent\WeChat\"All Users"\config\update.data

echo Y|cacls "%USERPROFILE%\AppData\Roaming\Tencent\WeChat\All Users\config\update.data" /T /P %USERNAME%:N

rd /s /q %USERPROFILE%\AppData\Roaming\Tencent\WeChat\patch

md %USERPROFILE%\AppData\Roaming\Tencent\WeChat\patch

echo Y|cacls %USERPROFILE%\AppData\Roaming\Tencent\WeChat\patch /T /P %USERNAME%:N

echo ok

rem timeout /nobreak /t 2

exit