Git Product home page Git Product logo

node-start-on-windows-boot's Introduction

node-start-on-windows-boot

Simple utility to enable / disable starting a program on Windows boot, by modifiying the right registry values.

Example

var startOnBoot = require('start-on-windows-boot');

startOnBoot.enableAutoStart('MyApplication', 'C:\\Program Files\\MyApplication\\MyApplication.exe');

Docs

enableAutoStart(name, file, callback)

Adds the auto-start registry record of a program.

name

Type: string

The name of the program.

file

Type: string

The full path of the programs' executable.

callback

Type: Function

Optional callback function.

disableAutoStart(name, callback)

Removes the auto-start registry record of a program.

name

Type: string

The name of the program.

callback

Type: Function

Optional callback function.

getAutoStartValue(name, callback)

Gets the value of the auto-start registry record of a program.

name

Type: string

The name of the program.

callback

Type: Function

The callback which gets called with the value (and a error, if any).

node-start-on-windows-boot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-start-on-windows-boot's Issues

Registry change is added to Current User, not Local Machine

In Line 27 of index.js, there is a line:

hive: WinReg.HKCU, //CurrentUser,

Because of this line, node will only start when logged in as the same user. I was initially using node-pm2-windows-startup, but instead had to use a different library since this solution only worked when logging in as the same user that started command.
Local Machine vs Current User should be a flag or Local Machine should be the default, no?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.