coreybutler / node-windows

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

run as service binary application instead of node.js script #169

Closed Tunga37 closed 7 years ago

Tunga37 commented 7 years ago

Is there a possibility to use this module to run binary's application as service instead of node.js script?

I would expect something like this



// Create a new service object
var svc = new Service({
  name:'Hello World',
  description: 'The nodejs.org example web server.',
  path_to_bin: 'C:\\path\\to\\myapp.exe'
});

Is there a way to achieve that?
coreybutler commented 7 years ago

That would defeat the purpose of this module. If you need to run a binary from node, just use node's built in child process.