adspace


How to install or uninstall a windows service?

Answer Posted / Archishman

To install or uninstall a Windows service, you can use the `sc.exe` command in the Command Prompt:nnInstall Service:n```cmdnsc create MyService binPath= "C:MyService.exe" displayName= "My Service" start= auto"n```nReplace `MyService` with your service name and `C:MyService.exe` with the path to your service executable.nnUninstall Service:n```cmdnsc delete MyService /f"n``` - The `/f` option forces deletion even if other services depend on it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you inherit a class into other class in c#?

996


Which namespaces are necessary to create a localized application?

1143


What is an abstract class c#?

969


How to assign Null value to Var?

1065


What is expression tree in c#?

998


Why can't we use a static class instead of singleton?

956