Is there a way to detect whether IIS is enabled or not?
I know how to check if it is INSTALLED, but I need to know if it’s installed but not enabled.
Also, can this be done natively via InstallShield? Checking this via .NET would be acceptable as we can write custom actions, but if there is an IS call then that would be ideal.
Any hints/tips are appreciated, thanks
You should also check to see if the Web Site is started, in addition to the W3svc Service
Where ServerState =
So the above answer using Win32_Service will tell you if the service is started or not, this will tell you if the web site is running in addition to telling you if the service is running.