node-start-on-windows-boot icon indicating copy to clipboard operation
node-start-on-windows-boot copied to clipboard

Registry change is added to Current User, not Local Machine

Open joehiggs opened this issue 7 years ago • 3 comments

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?

joehiggs avatar Mar 27 '18 20:03 joehiggs

Did you verify that it works if you use Local Machine?

marklagendijk avatar Mar 28 '18 09:03 marklagendijk

No—I didn’t have time to modify the dependency and test

joehiggs avatar Mar 28 '18 12:03 joehiggs

I have tested it with HKLM - still doesn't work unless a user logs in

dluk avatar Dec 11 '18 10:12 dluk