1

I have a windows service, i need to install it and manage it using my electron app. What is the best way to do this?
Thanks.

update

Currently for installing a service i need to use

Installutil (path of my service) 

And for starting net start myservice

Need to do this while installing my electron app.

Sachin
  • 2,627
  • 1
  • 19
  • 35

1 Answers1

0

Related to this post Stop and Start a service via batch or cmd file?

You can do exec with child process as example

const {exec} = require('child_process');
exec('YOUR TERMINAL CODE HERE', (err, stdout, stderr) => {
//..
});
t33n
  • 270
  • 1
  • 3
  • 17