Skip to content

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

@ngladbach

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

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