coreybutler / node-windows

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

Question - how are the scripts run? #174

Closed BradfordMedeiros closed 6 years ago

BradfordMedeiros commented 7 years ago

Will investigate when I have the time, but how are the scripts actually run? Are we looking for node on the path, or elsewhere? I was using electron-packager/winstaller, and realized that they were calling the actually exes that I had generated, instead of some sort of node instance. This caused bad behavior.

Seems like this might be resolved in a different way, or maybe a note made somewhere here? I imagine a big use case of this is in combination with electron to create full windows applications with the node/html/js setup.

I realize this might be more electron packagers fault than anything, but maybe not.

coreybutler commented 6 years ago

Please see the Using Node-windows with Electron/NW.js.

yuapple commented 2 years ago

@coreybutler excuse me, After reading the explanation, I am a little confused. My business scenario is to start a service in electron, and also to run the application on the desktop. Because some functions in my application require system permissions to implement, I want to open a new process to resolve it