WinSW is a small Windows executable that installs, starts, and monitors any program as a Windows service using a sidecar XML configuration file.
Overview
Windows Service Wrapper (WinSW) wraps ordinary applications so they can run under the Windows Service Control Manager. Operators pair a renamed WinSW executable with an XML file that declares the underlying command, recovery behavior, logging, and related service metadata.
After placing the executable and XML side by side, administrators run install, start, stop, restart, status, refresh, uninstall, or experimental dev commands from an elevated session when required. WinSW prompts for UAC when privileges are missing. The same binary can be used globally with an explicit XML path or bundled beside a custom-named copy for single-application packaging.
WinSW 3 targets machines with .NET Framework 4.6.1 or newer, and also ships native 64-bit and 32-bit builds based on .NET 7 for hosts without the framework installed. Supported Windows versions span modern Windows 10 releases and corresponding Windows Server editions per the published system requirement tables.
Documentation covers XML configuration reference, logging and error reporting, extensions, self-restarting services, deferred file operations, migration notes from 2.x, and troubleshooting guidance. Sample configurations illustrate real deployments such as Jenkins running as a service.
Key features
- XML-defined Windows services
- Install start stop status CLI
- Bundled or global tool layouts
- Logging and error reporting hooks
- Extensions and refresh without reinstall
- Experimental dev process commands
- Native .NET 7 binaries available
- UAC elevation prompts when needed
Use cases
- Running apps as Windows services
- Packaging daemons with custom EXE names
- Self-restarting background workloads
- Jenkins or similar long-lived agents
- Managing services without sc.exe scripts