coreybutler / node-windows

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

Functionalities are not working properly #221

Closed upardhi closed 4 years ago

upardhi commented 5 years ago

Here are the steps I use to install services D:\colorization-demo>npm install -g node-windows

D:\colorization-demo>npm link node-windows D:\colorization-demo\node_modules\node-windows -> C:\Users\tage_demo2\AppData\Roaming\npm\node_modules\node-windows

If I run same code using node index.js its working properly

upardhi commented 5 years ago

var Service = require('node-windows').Service;

// Create a new service object var svc = new Service({ name:'Colorization', description: 'TColorization', script: 'D:\colorization-demo\index.js', nodeOptions: [ '--harmony', '--max_old_space_size=4096' ] });

// Listen for the "install" event, which indicates the // process is available as a service. svc.on('install',function(){ svc.start(); });

svc.install();

coreybutler commented 5 years ago

Have you reviewed https://github.com/coreybutler/node-windows/wiki#frequently-asked-questions?

upardhi commented 5 years ago

Yes, I read this. I am trying to use "exec" to run the command of ImageMagick software. and it's not working.

coreybutler commented 4 years ago

Closing due to age.