cityssm/contract-expiration-tracker

View on GitHub
windowsService-uninstall.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Service } from "node-windows";
import { serviceConfig } from "./windowsService.js";

// Create a new service object
const svc = new Service(serviceConfig);

// Listen for the "uninstall" event so we know when it's done.
svc.on("uninstall", function() {
  console.log("Uninstall complete.");
  console.log("The service exists:", svc.exists);
});

// Uninstall the service.
svc.uninstall();