How To Install A Service From The Command Line In Windows



TODO:

Have you ever built a service and wanted to install it?

 

SOLUTION:

  • Open a Visual Studio Command Window
  • Navigate to your EXE folder of the service.
  • Execute the following command:
    • C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil .\YourService.exe


NOTES:

This assume .Net version 4



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading