const Service = require("node-windows").Service; const path = require("path"); const svc = new Service({ name: "Vision Scanner Service", description: "Standalone vision scanner service for shelf/pantry photo scanning", script: path.join(__dirname, "dist", "server.js"), }); svc.on("uninstall", () => { console.log("Service uninstalled."); }); svc.on("error", (err) => { console.error("Error:", err); }); svc.uninstall();