I am currently using os-service to create a Windows service that needs to be packaged with my Electron application. Currently, everything is installed with NSIS, but I'm not quite sure how to install and run an os-service script during installation. Likewise for uninstallation.
Anyone with experience with this? The service is installed using node to run the script.
When you install Node.js runtime on target computer it should contain everything necessary to run apps properly.
Node.js also installs npm so it should be possible to execute npm install os-service from your NSIS installer somehow like this:
npm install os-service from your installer - again use ExecWait or related. You will have to use absolute paths and so on.I have no experience with web apps, there more be some dependencies and so on so you need to do a little more investigation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With