.NET Framework 4.6
dotnet add package WindowsService.Host --version
NuGet\Install-Package WindowsService.Host -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WindowsService.Host" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WindowsService.Host --version
#r "nuget: WindowsService.Host,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WindowsService.Host as a Cake Addin
#addin nuget:?package=WindowsService.Host&version=

// Install WindowsService.Host as a Cake Tool
#tool nuget:?package=WindowsService.Host&version=

Simple Windows Service hosting library. Allows to install service with installutil.exe into Service Control Manager (SCM) or run as a Console Application.

Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 2,082 12/16/2016 1,517 5/29/2016 1,031 2/9/2016 1,579 1/14/2016 933 1/7/2016 966 1/7/2016 935 1/6/2016

Added support for unattended installation via command-line args /username, /password and /account.