We can install windows service into Services on windows server with the help of InstallUtil.exe a
command line utility using
1. Using Visual Studio Command Prompt
2. Command Prompt
InstallUtil.exe is the command line utility which is installed with .Net frame work and its path is %WINDIR%\Microsoft.NET\Framework[64]\<framework_version>.
I. Using Visual Studio Command Prompt
- On the Windows Start menu or Start screen, choose Visual Studio , Visual Studio Tools, Developer Command Prompt.A Visual Studio command prompt appears.
- Access the directory where your project's compiled executable file is located.
- Run InstallUtil.exe from the command prompt with your project's executable as a parameter:
installutil <yourproject>.exe