I need to detect if WCF Http/Non-Http Activation Components is installed during the installation of my product. How can I do so?
Thanks.
For IIS7, check the following Registry Key:
HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp\Components\
For the following components:
From this page: http://learn.iis.net/page.aspx/135/discover-installed-components/
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
Source: http://blogs.msdn.com/b/drnick/archive/2010/05/11/debugging-a-missing-hostedtransportconfiguration-type.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With