开发者

How to identify if .net framework is installed in a system and it version using command prompt [duplicate]

开发者 https://www.devze.com 2022-12-20 05:58 出处:网络
This question already has answers here: Closed 12 years ago. Possible Duplicate: Is there a way to determine the .NET Framework version from the command line?
This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Is there a way to determine the .NET Framework version from the command line?

How to identif开发者_运维问答y if .net framework is installed in a system and it version using command prompt? Thanks in advance.


the best way to do this is simply by issuing the following command from cmd

dir /Ad %systemroot%\Microsoft.NET\Framework

this will give you a list of .net frameworks installed.

more info can be found here:


Another alternative is to check if %systemroot%\Assembly exists, as there will always be an assembly cache (GAC) folder.


In cmd

reg query "HKLM\Software\Microsoft\NET Framework Setup\NDP"

or in powershell

gci "HKLM:Software\Microsoft\NET Framework Setup\NDP"

These registry keys, and those top detect particular service packs, are described in the accepted answer to this question.

0

精彩评论

暂无评论...
验证码 换一张
取 消