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.
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.
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:
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.
Another alternative is to check if %systemroot%\Assembly exists, as there will always be an assembly cache (GAC) folder.