Skip to content

When updating the Electron App the Pinned Icon from Taskbar is removed #2514

Closed
@mastergberry

Description

@mastergberry
Contributor
  • Version: Latest
  • Target: Windows (Nsis)

When you are doing an update the NSIS system seems to remove the pinned icon (if you pinned it) on your task bar (bottom of screen). Is there some way to make it so when upgrading this icon is not removed?

Activity

develar

develar commented on Jan 23, 2018

@develar
Member

Well, in general, it was fixed. I mean — if some configuration is not changed, shortcuts will be not recreated and so, pinned icon remains. In your case, it seems, shortcut related configuration detected as changed and it leads to icon reregistration. Please provide your NSIS config.

mastergberry

mastergberry commented on Jan 23, 2018

@mastergberry
ContributorAuthor

The problem is the pinned icon is being removed from the task bar. The icon appears on the desktop again...but it's just removed from the bottom bar in windows.

"nsis": {
      "oneClick": false,
      "perMachine": true,
      "allowElevation": true,
      "allowToChangeInstallationDirectory": true,
      "runAfterFinish": false,
      "include": "build/badlion.nsh",
      "unicode": true,
      "differentialPackage": true
    },
mastergberry

mastergberry commented on Jan 24, 2018

@mastergberry
ContributorAuthor

Just for further clarification @develar in case something wasn't clear with the way windows words things:

Before Upgrading to 1.1:

image

After Upgrading from 1.0 to 1.1:

image

In the first part of the upgrade it seems to remove the existing icon from the task bar.

develar

develar commented on Jan 30, 2018

@develar
Member

Reproduced.

mastergberry

mastergberry commented on Feb 20, 2018

@mastergberry
ContributorAuthor

Any chance of getting this resolved soonish @develar? If not can you point me to where you think the issue is happening so I can try to take a crack at it. Don't have an environment at the moment but I will in a few days.

reopened this on May 3, 2018
Rigner

Rigner commented on May 17, 2018

@Rigner

allowToChangeInstallationDirectory: true
Looking at the code, it looks like when enabling this setting, keepShortcuts bool is automatically set to false.

I don't think this is not how it should be working, if the installation path, app args etc didn't change between old and new shortcut, it shouldn't recreate it. It's just missing a shortcut "content" check around here.

(might need to check other installers for similar mistakes ?)
(I have no knowledge about NSIS, i don't know how to make these changes myself)

Jandou6

Jandou6 commented on Jul 5, 2018

@Jandou6

The Bug is also in Latest(Version 20.19.x)

tobiasmuecksch

tobiasmuecksch commented on Sep 12, 2018

@tobiasmuecksch

This bug is still present.

45 remaining items

Loading
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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Stanzilla@develar@EtienneLem@Jacobkg@tobiasmuecksch

      Issue actions

        When updating the Electron App the Pinned Icon from Taskbar is removed · Issue #2514 · electron-userland/electron-builder