Add Windows feature from C #

As part of the installation package I'm working on, I need to add the IIS feature on Win7 and Win Server 2008. Is there a way to add new Windows features from the code?

+2
source share
1 answer

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

The following is an example of how to do this for MSMQ:

+4
source

Source: https://habr.com/ru/post/901051/


All Articles