2

How can I add programatically service dependencies to an installed Window service ?

It would really helpful, If someone suggest solution using WMI through the System.Management namespace . What is property for dependencies on which I can set services?

Rajesh
  • 6,269
  • 5
  • 28
  • 23

1 Answers1

3

You want to use the Change method of the Win32_Service class. The last parameter is a doubly-NULL-terminated list of dependencies.

Dean Harding
  • 71,468
  • 13
  • 145
  • 180