Windows Service Wrapper (WinSW) is a standalone binary that enables wrapping and managing custom executables as Windows services. Licensed under the MIT License, it is suitable for both personal and commercial use without restrictions. The current distribution includes binaries compatible with .NET Frameworks 2.0 and 4.0.
WinSW offers a command-line interface for installing and managing Windows services, as well as numerous advanced features configurable via an XML file. These features include logging with log rotation, automatic file updates from URLs, process termination for runaway programs, and shared directory mapping on startup, among others.
- Download WinSW.exe or WinSW.zip from the distribution.
- Create a configuration file named myapp.xml (refer to the XML configuration specification and examples for details).
- Install the service by running the command:
bash winsw install myapp.xml
- Start the service using:
bash winsw start myapp.xml
- Check the status of the service by executing:
bash winsw status myapp.xml
- Obtain
WinSW.exe
orWinSW.zip
from the distribution and rename the executable (e.g.,myapp.exe
) to match your application. - Create a configuration file named
myapp.xml
(refer to the XML configuration specification and samples). - Place both the renamed executable and the configuration file in the same directory; WinSW identifies its configuration file based on this placement.
- Install the service by running:
bash myapp.exe install
- Start the service by executing:
bash myapp.exe start
With its flexibility and advanced capabilities, WinSW simplifies converting executables into services, making it an efficient tool for managing custom applications on Windows platforms.
.
.
.
.
.
.
winsw
win
winsw download
winsw git
winsw windows
windows winsw app