import { WindowsService } from "https://deno.land/x/service@1.0.0-beta.6/lib/managers/windows.ts";
Methods
private
rollback(serviceBatchPath: string)Rolls back any changes made during the Windows service installation process by removing the batch file.
generateConfig(options: InstallServiceOptions): string
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.
uninstall(config: UninstallServiceOptions)
Uninstalls a Windows service by removing the batch file. Checks if the service exists and removes it if found.