jfromaniello / winser

Run a node.js application as a window service using nssm.
270 stars 47 forks source link

How can I add an environment variable ? #50

Open bluetiger30 opened 6 years ago

bluetiger30 commented 6 years ago

Hi ,

How can I add the following environment variable?

image

I tried all the following, none of them worked :

node ../node_modules/winser/bin/winser -a -i --env "Path=/OpenSSL-Win64/bin" --startcmd "node index.js"

node ../node_modules/winser/bin/winser -a -i --env "Path" --startcmd "node index.js"

node ../node_modules/winser/bin/winser -a -i --env "/OpenSSL-Win64/bin" --startcmd "node index.js"

node ../node_modules/winser/bin/winser -a -i --env "name:Path,value:/OpenSSL-Win64/bin" --startcmd "node index.js"