Initial commit: Vision scanner for shelf/pantry product extraction
This commit is contained in:
18
service-uninstall.js
Normal file
18
service-uninstall.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user