coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.82k stars 356 forks source link

Callback is not defined - when uninstalling non-running Windows Service #58

Open MRdNk opened 10 years ago

MRdNk commented 10 years ago

"node-windows\lib\daemon.js:561" - "ReferenceError: callback is not defined" https://github.com/coreybutler/node-windows/blob/master/lib/daemon.js#L561

This occurs when using the 'uninstall' function when the service is not running. If the service is running, then it stops the service and uninstalls it.

It's probably an easy fix, just haven't looked through it yet.

coreybutler commented 10 years ago

Pretty sure that was a debugging line that didn't get removed. Thanks for the heads up. The easy fix is to just delete the line.