bat 静默安装python37、vc++、证书 脚本

@ECHO off

echo »ñÈ¡AdministratorȨÏÞ
cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nul
if %errorlevel%==0 goto Admin
if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
echo Set RequestUAC = CreateObject("Shell.Application")>"%temp%\getadmin.vbs"
echo RequestUAC.ShellExecute "%~s0","","","runas",1 >>"%temp%\getadmin.vbs"
echo WScript.Quit >>"%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" /f
if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
exit

:Admin

cd %~dp0
cd requestid

echo mitmproxy.cer
certmgr.exe -add mitmproxy.cer -s -r localMachine trustedpublisher
certmgr.exe -add mitmproxy.cer -s -r localMachine AuthRoot
echo .

echo Python37.msi
start /wait Python37.msi /quiet /passive
echo.

echo vc++2015.msi
start /wait vc_redist.x64.exe /q
echo.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容