cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DaveTu
Level 3

How to detect if the ASP.NET feature is installed in Windows 7?

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.
Labels (1)
0 Kudos
(2) Replies
Mrunmayee
Level 5

Probably you can check in registry :
HKLM\\SOFTWARE\\Microsoft\\ASP.NET

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.

--Mrunmayee
0 Kudos
DaveTu
Level 3

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