coreybutler / coreybutler/node-windows

Unable to execute child process

Open
#270 7 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
2.9k
Forks
368
PR merge metrics
No merged PRs in 30d

Description

I have a created a windows service using node-windows and it seems to work properly. But as soon as I have my child process call it does not execute my child process and if i switch to running it from cmd instead as a service it opens my executable.
This is nothing related to type of user as i only have one user as administrator
Below is my code

Tried using spawn
const command = 'jre-8u261-windows-x64.exe'
const bat = spawn(command, [],{
shell: true, // use to run in a shell if you need
detached: true, // important
stdio: "ignore",
});

Using exec:
const test = exec('jre-8u261-windows-x64.exe' );
Please suggest

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.