As part of an installation package I'm working on, I need to add the IIS feature on Win7 and Win Server 2008. Is there any way of adding new windows features from code?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can do this by calling pkgmgr
(a command line utility for installing features and packages).
There is an example of how to do this for MSMQ here:
- Install Msmq using C#