tags:

views:

94

answers:

3

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

How to identify if .net framework is installed in a system and it version using command prompt? Thanks in advance.

+1  A: 

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:

MindFold
use %WINDIR% instead of %systemroot%
HotTester
A: 

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.

Lachlan Roche
A: 

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

Chris S