Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %~d0
- cd %~d0%~p0
- call npm init
- call npm install --save node-red
- call npm install --save @autocodingsystems/node-red-utils
- call npm install --save node-red-contrib-mqtt-broker
- call npm install --save node-red-dashboard
- call npm install --save winser
- mkdir datadir
- @echo off
- (
- echo %%~d0
- echo cd %%~d0%%~p0
- echo .\node_modules\.bin\node-red -u ./datadir ./datadir/flows.json
- )>run-local.cmd
- (
- echo %%~d0
- echo cd %%~d0%%~p0
- echo call .\node_modules\.bin\winser -i -a --startuptype delayed --startcmd "node .\node_modules\node-red\red.js -u ./datadir ./datadir/flows.json"
- echo pause
- )>install-service.cmd
- (
- echo %%~d0
- echo cd %%~d0%%~p0
- echo call .\node_modules\.bin\winser -r -x
- echo pause
- )>uninstall-service.cmd
Add Comment
Please, Sign In to add comment