Manual install / uninstall of Windows Service
Install
Use the following line in a command prompt window to install a Windows Service.C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe "E:\Program Files (x86)\MyWinServiceFolder\MyWinService.exe"
Uninstall
Use the following line in a command prompt window to uninstall a Windows Service.C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u "E:\Program Files (x86)\MyWinServiceFolder\MyWinService.exe"
Notes
The InstallUtil.exe file may be located in a different folder, depending on which version of the .NET Framework is installed on the machine.The command prompt may or may not need to be run as an administrator.