This executable basekit is provided in some ActiveState ActiveTcl distributions.
TWu 2025-01-27 - It is provided by the Tcl Dev Kit for services on Windows systems.
I used this feature over years properly.
The online help file states (cited from version 5.4.1):
Service Manager
Windows Services are applications that run in the background on Windows systems. These applications have no user interface, as they are designed to run with no user intervention. Sometimes a service has an administrative tool for configuration and interaction; however, the service itself runs independently.
Services are usually automatically loaded whenever the system boots. They run outside of the context of the user (if any) who is currently logged in on the system. Therefore, the service's privileges are separate from the user login, and are tied to the service itself, not the user who launches the service.
The TclApp component of the Tcl Dev Kit is used to create Tcl applications that will be deployed as services. ... The Tcl Dev Kit includes a base kit (Tcl/bin/base-tclsvc*) for creating portable services.
(cite end)