@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)

::屏蔽win7系统的提示通告(要获取将来的Edge更新,需要Win10或更高版)
::reg add "HKCU\Software\Policies\Google\Chrome" /f /v "SuppressUnsupportedOSWarning" /t REG_DWORD /d "1" >NUL 2>NUL

::创建根目录带参数的启动快捷方式(关扩展自动升级不发送匿名数据等)
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""%~sdp0\"") & ""Chrome.lnk""):b.TargetPath=""%~sdp0App\chrome.exe"":b.Arguments=""--no-first-run --disable-component-update --disable-crash-reporter --disable-breakpad --disable-logging --no-report-upload "":b.WorkingDirectory=""%~sdp0"":b.Save:close")

ECHO.&ECHO 完成 &TIMEOUT /t 3 >NUL&EXIT