Using either VB.NET, C#, or VBScript, how can I check if the IIS 6 Management Compatibility feature and its subfeatures have been installed on a machine running IIS 7.x?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I performed some tests using a trial copy of Registry Workshop (the Compare Registries function) and found the following:
If IIS 7.x is installed, the following Registry key contains information about the installed subcomponents:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Components
Each installed feature is represented with a value of DWORD 0x00000001. If a feature is not installed, the value is missing.
For the Web Management Tools, the value names are as follows:
Note that these component names came from a Windows 7 installation and might differ slightly from those of Windows Server 2008, though the Registry keys should be the same.
Some of this is mentioned in a note to this article:
Using Managed Code to Detect if IIS is Installed and ASP/ASP.NET is Registered
A list of these and other subcomponents can be found here:
Discover Installed Components
Update:
Some core functions from the final code. This is not the complete code but should be enough for anyone who spends the time looking up the component names for the various IIS versions: