node-start-on-windows-boot
node-start-on-windows-boot copied to clipboard
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?
Did you verify that it works if you use Local Machine?
No—I didn’t have time to modify the dependency and test
I have tested it with HKLM - still doesn't work unless a user logs in