How to install or uninstall a windows service?
Answer / 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 |
how encapsulation is implemented in c#
Can you instantiate a struct without using a new operator in c#?
What?s an abstract class?
Can a constructor have a return type?
can we create an empty interface with no definitions? If so, how it should be called in the class?
How to Show Message box in Metro Style App?
What is array and arraylist?
What are cookies in c#?
What is array collection?
Which framework is best for desktop application?
What is the usage of transponders?
How do I make a dll in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)