Is there a command line command for verifying what version of .NET is installed

前端 未结 9 883
孤街浪徒
孤街浪徒 2020-12-07 16:44

I have set of scripts for doing scripted installs. You can use the scripts on any server 2008 machine. However, I need to check if .NET 3.5 has been installed (before the

9条回答
  •  长情又很酷
    2020-12-07 16:56

    REM Search for the CONFIG file, if this doesn't exit then the user doesn't have the .Net framework 2.0 `

    SET FileName=%windir%\Microsoft.NET\Framework\v2.0.50727\CONFIG
    IF EXIST %FileName% GOTO INSTALL_DIALER
    ECHO.You currently do not have the Microsoft(c) .NET Framework 2.0 installed.
    

提交回复
热议问题