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.
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.