2

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?

Bo Persson
  • 90,663
  • 31
  • 146
  • 203
Lior Ohana
  • 3,467
  • 4
  • 34
  • 49

1 Answers1

4

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:

Community
  • 1
  • 1
Justin
  • 84,773
  • 49
  • 224
  • 367
  • I like that that's a link to another Stackoverflow question to which the excepted answer is a link to *another* Stackoverflow question - very meta. – Martin Harris Aug 16 '11 at 08:58
  • 8
    @Martin My aim is one day to create a circular reference where none of the answers actually answers the question. – Justin Aug 16 '11 at 09:37