Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/service/lib/managers/windows.ts>WindowsService

Install a Deno application as a system service
Latest
class WindowsService
import { WindowsService } from "https://deno.land/x/service@1.0.0-rc.0/lib/managers/windows.ts";

Constructors

new
WindowsService()

Methods

private
rollback(serviceBatchPath: string)

Rolls back any changes made during the Windows service installation process by removing the batch file.

Generates a batch file content as a string based on the given options.

install(config: InstallServiceOptions, onlyGenerate: boolean)

Installs a command as a Windows service, checking for existing services with the same name.

Uninstalls a Windows service by removing the batch file. Checks if the service exists and removes it if found.