Install your service manually using PowerShell
-
From the Start menu, select the Windows PowerShell directory, then select Windows PowerShell.
-
Access the directory where your project's compiled executable file is located.
-
Run the New-Service cmdlet with the with your project's output and a service name as parameters:
New-Service -Name "YourServiceName" -BinaryPathName <yourproject>.exe
Uninstall your service manually using PowerShell
-
From the Start menu, select the Windows PowerShell directory, then select Windows PowerShell.
-
Run the Remove-Service cmdlet with the name of your service as parameter:
Remove-Service -Name "YourServiceName"
sc.exe delete "YourServiceName" for PSVersion 5.1