@echo off echo UACTest>%windir%\UACTest.tmp && del %windir%\UACTest.tmp && goto UAC cls && echo 请鼠标右键用管理员权限运行 && pause && exit :UAC icacls "%ProgramFiles%\Google\Update" /grant:r everyone:(F) icacls "%ProgramFiles(x86)%\Google\Update" /grant:r everyone:(F) icacls "%LOCALAPPDATA%\Google\Update" /grant:r everyone:(F) echo. echo Google Update文件夹授权解锁,现在可正常安装 Chrome echo 安装完后按任意键继续... pause>nul rd/s/q "%ProgramFiles%\Google\Update" rd/s/q "%ProgramFiles(x86)%\Google\Update" rd/s/q "%LOCALAPPDATA%\Google\Update" mkdir "%ProgramFiles%\Google\Update" mkdir "%ProgramFiles(x86)%\Google\Update" mkdir "%LOCALAPPDATA%\Google\Update" icacls "%ProgramFiles%\Google\Update" /deny everyone:(F) icacls "%ProgramFiles(x86)%\Google\Update" /deny everyone:(F) icacls "%LOCALAPPDATA%\Google\Update" /deny everyone:(F) echo. echo Google Update文件夹授权锁定,禁止自动升级 pause