How to register a service on a remote machine programly?

G

Guest

hi,

i want to code to register a custmer service on a remote machine and i've
tried class System.ServiceProcess.ServiceInstaller, but i can't do the job.
Is there any other ways?


Thanks in advance
-Zhilin
 
W

Willy Denoyette [MVP]

| hi,
|
| i want to code to register a custmer service on a remote machine and i've
| tried class System.ServiceProcess.ServiceInstaller, but i can't do the
job.
| Is there any other ways?
|
|
| Thanks in advance
| -Zhilin

Use the ready made commandline tool for this: sc.exe

Willy.
 

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

Top