Script to install any file as a service with a single click
You can download latest release from here
Windows 10 ✔ | Not Yet ❌ | Not Yet ❌ |
To setup Servicifier, you only need to:
- Downlaod the release and extract it or build it yourself using the source code
- Put files that you want to install inside
/files
folder - create an installation config file in path
config/installation-config.json
, which will tell Servicifier where to copy your script taken from/files
and also details like service name. You can do this without config file by manually entering details after running Servicifier, but this of course won't be a single click - that's it, now you can install your scripts as service with a single click
To generate executable files, run:
npm run release
then copy binary assets from src/windows/bin
to release/bin
. Also you'll need to create release/files
folder to put you scripts there to be used as service files
To automate service installation process, you can create a config file in path config/installation-config.json
:
{
// directory to host service files
"destDir": "c:/ServiceFolder",
// name of service
"name": "Service Name",
// service description
"description": "Service description",
// name of entry point file of your script inside /files
"serviceFile": "script.exe"
}
This script uses node-windows (maybe node-mac and node-linux later) internally but with some changes to work with PKG