0

I want to install and start (2. Button Stop and Deinstall) a service from code in C#.Net Windows Forms.

Can someone help me?

1 Answer 1

3

Use the ServiceController class, documented here to stop and start it.

To install, you can use InstallUtil.exe, have a look here.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.