Windows Services

G

Guest

Hi,

I have created two Windows Services name them Service A and Service B for
the question sake.

How do I write code to say that Service B depends on Service A
 
J

Jay B. Harlow [MVP - Outlook]

bbdobuddy,
You don't write any code per se. You need to set properties on the
ServiceInstaller object for your project. Set the ServicesDependedOn of
Service B's installer to Service A's ServiceName property.

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top