Skip to content

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

Description

@ngladbach

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions