Electron-builder: Entry left in Task manager startup apps even after uninstalling electron app

Created on 29 Oct 2017  路  4Comments  路  Source: electron-userland/electron-builder


  • Version: 19.42.2

  • Target: Windows 10


I've set my electron app to auto-start at bootup.
Here's the setting for that:

app.setLoginItemSettings({
    openAtLogin: true,
    path: process.execPaths
  })

package.json settings:

 "nsis": {
      "runAfterFinish": true,
      "createDesktopShortcut": true,
      "deleteAppDataOnUninstall": true
    }

The issue is when i uninstall the app i can still see the entry in task manager -> startup apps tab.
see the image below (note that 'open file location' is disabled for this entry):
image
On digging I found that electron adds the registry entry @ Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run which doesn't get cleared on app uninstall.

I'm not sure how to get it removed maybe some additional parameters to include in the uninstaller script or any other way?
And also what would be the process in MAC?

bug help wanted nsis windows

Most helpful comment

This issue still persists

All 4 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue still persists

This issue still persists

This issue still persists

Was this page helpful?
0 / 5 - 0 ratings