首页 > 技术文章 > bat 检测.NET framework框架后运行程序 否则自动安装

wujiangling 2020-12-09 18:44 原文

@echo off
title Welcome Use Windows Cleaning Assistant
ver|find "6.1" >nul
if %errorlevel% NEQ 0 goto end
if exist %windir%\Microsoft.NET\Framework64\v4.0.30319 (
    start WCA.Win.exe
    exit
) else (
    echo Setup .NET framework 4 now...
    net4.exe /norestart /passive
)
cls
echo If WCA.exe cannot startup immediately, please reboot your system...
:end
start WCA.Win.exe

 

推荐阅读