Teamwork / node-auto-launch

Launch applications or executables at login (Mac, Windows, and Linux)
MIT License
941 stars 111 forks source link

isEnabled not working on Windows 11 when changed through Windows Settings #130

Open ngladbach opened 2 months ago

ngladbach commented 2 months ago

Windows 11 node 18.19.1 Electron auto-launch 5.0.6

we use auto-launch in out application, which puts a RegKey in HKCU \Software\Microsoft\Windows\CurrentVersion\Run (see https://github.com/Teamwork/node-auto-launch/blob/master/src/library/autoLaunchAPI/autoLaunchAPIWindows.js#L8). That gets recognized by the WIndows 11 settings and the user can disable it in Settings > Apps > Autostart. But when disabling it, the RegKey doesn’t get changed or deleted. So is stays there and our application things its still enabled (isEnabled still returns true)

Is there a workaround? What is the Windows Settings actually changing when disabling autostart in the settings?

with best regards Niclas