@echo off setlocal rem Convenience launcher for Windows users who prefer a .cmd entry point. rem This downloads and runs install-root-ca.ps1 from pki.zhoushicheng.cn. rem Run it from an elevated shell because importing a LocalMachine Root CA rem requires administrator privileges. set "SCRIPT_URL=https://pki.zhoushicheng.cn/tools/install-root-ca.ps1" set "SCRIPT_PATH=%TEMP%\install-root-ca.ps1" echo Downloading zhousc66 Root CA installer... powershell -NoProfile -ExecutionPolicy Bypass -Command "Invoke-WebRequest -Uri '%SCRIPT_URL%' -OutFile '%SCRIPT_PATH%'" if errorlevel 1 exit /b 1 echo Running installer. This must be launched from an elevated shell. powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_PATH%" exit /b %errorlevel%