![]() Personally, I consider this unnecessary and trust the registry method just fine.įinally, you could set up an intranet test site which is reachable from your server and sniffs the User Agent to determine. Other than these I think the only way to be 100% sure is to actually run a simple console app compiled targeting your framework version. NET Framework 2.0 Service Pack 2 9Ĭ:\>wmic product where "name like 'Microsoft. Maybe it works better on your server: C:\>wmic product where "Name like 'Microsoft. WMI is another possibility, but seems impractical (Slow? Takes 2 min on my C2D, SSD). ![]() This also happens to be the "Microsoft Recommended" official method. InstallPath REG_SZ c:\WINNT\Microsoft.NET\Framework\v3.5\ 0x1 means yes: C:\>reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5"| findstr Install Since you said you want to know if its actually installed, I think the best way (short of running version specific code), is to check the reassuringly named "Install" registry key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |