Following example demonstrates how we can install/uninstall with .NET windows service.
Installing service with InstallUtil.exe
By using .NET framework utility InstallUtil.exe we can install/uninstall windows service. It’s located at:
[.NET framework path]\[Version]\InstallUtil.exe |
Use same command using parameter /u for uninstallation of windows service.
InstallUtil.exe /u "[Path to your service]" |
Install service programmatically
We can also install service using C#; for this please find following c-sharpcorner.com article.
ServiceInstaller in c-sharpcorner.com article.

Leave a Reply
You must be logged in to post a comment.