How to programmatically check WCF Http/Non-Http Activation components?
I need to detect if WCF Http/Non-Http Activation Components is installed during the installation of my product. How can I do so?
For IIS7, check the following Registry Key:
For the following components:
- Process Model - ProcessModel
- .NET Environment - NetFxEnvironment
- Configuration APIs - WASConfigurationAPI
UPDATE: Since the above is true even when the components are not installed, try running this command from the command line:
sc query nettcpactivator
If the service is stopped or does not exist, the WCF Non-HTTP Activation components are likely not installed. To install them, run this command:
pkgmgr /iu: WCF-NonHTTP-Activation