Hi folks,
Any of you API gurus know of a way to programatically Add, Remove, Verify installation of, verify current status (running or stopped) a Windows service?
I have a program that runs as a service and I want to also create a separate program that will allow me to remotely manage the service. For example, I may want to install a new version. That would require that I perform a series of functions:
1. Is the service currently installed?
2. Is it running? If so stop it.
3. Remove/Update EXE
4. Restart service.
5. Verify service is now running or is in original state I found it.
I'm thinking that the Windows Scripting Host may be the ticket but I'm a dunce when it comes to knowing the API to call/use.
TIA!!!
Best,
DD
A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.