Contents
Install your service manually
- From the Start menu, select the Visual Studio <version> directory, then select Developer Command Prompt for VS <version>.
- 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:
How do I add a service to Windows?
How to Create Windows service
- Open Visual Studio, go to File > New and select Project.
- Go to Visual C# -> ”Windows Desktop” -> ”Windows Service,” give your project an appropriate name and then click OK.
- Right-click on the blank area and select “Add Installer.”
How do I install InstallUtil EXE on Windows?
To install or uninstall Windows Service (that was created using the .NET Framework) use the utility InstallUtil.exe. This tool can be found in the following path. Open InstallUtil.exe in the directory for Framework 2.0; the path is “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\”.