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


I have set up script to install scripts You can use scripts on any server 2008 machine. However, I have to check that .NET 3.5 is installed using the DOS batch file (before running the script). Is this possible?

I know that I can check that a file exists in C: \ windows \ Microsoft.NET \ framework \ v3.5 , but it would be nice to be a little bit More dependable

I would like to check whether it is actually installed, not just if the file / file exists.

Thanks

Unfortunately, the best way to check that directory will be to believe me Not that what you say, but "really installed" uses the same CLR as .NET 3.5. NET 3.0 and .NET 2.0 are therefore all new functionality written in new languages ​​that live in those directories. Actually, if the directory is there then 3.5 is installed.

Whatever I add, it is to find such diaries for maximum flexibility:

 % windir% \ Microsoft .NET \ Framework \ v3.5 < / Code> 

Comments