添加Windows特性从C# [英] Add Windows Feature from C#

查看:144
本文介绍了添加Windows特性从C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一个安装包我工作的一部分,我需要添加IIS的功能上的Win7和Win Server 2008中。 有什么办法增加新的Windows功能从code?

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?

推荐答案

您可以通过调用的 PKGMGR (一个命令行实用程序安装功能和包)。

You can do this by calling pkgmgr (a command line utility for installing features and packages).

还有就是如何做到这一点的MSMQ在这里的一个例子:

There is an example of how to do this for MSMQ here:

这篇关于添加Windows特性从C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆