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?
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