View Full Version : How to detect if the ASP.NET feature is installed in Windows 7?

11-25-2009, 03:12 PM
I need a way to determine if the ASP.NET feature is installed on Windows 7. In Windows 2008 we can query the WMI object Win32_ServerFeature, however, this object is not available on Windows 7.

11-26-2009, 02:55 AM
Probably you can check in registry :

If the above key exists then check for "iis_inetmgr" value under "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\Oc Manager\\Subcomponents". If the value is 1, then ASP.NET is installed.


11-30-2009, 03:03 PM
The HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\Oc Manager\\Subcomponents registry key did not contain any "iis" values.

I discovered that I can query the Win32_OptionalFeature WMI object to check if the object named IIS-ASPNET is present.