question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NSIS: Auto-updating leaves a bad shortcut when a user attaches the icon to the Windows Taskbar

See original GitHub issue
  • Version: Electron-builder: 8.6.0
  • Target: Windows NSIS

User Story

As a Electron-App user, I would like my pinned Taskbar icon to still work after updating, so I can quickly use my app after updates and reduce time spent pinning the icon to my Taskbar after every update.

Current situation:

When you do auto-update, it installs it in a new folder, deletes the old folder, and leaves the pinned Taskbar icon referencing a folder that doesn’t exist.

Example workflow:

### User side: 
1. user has electron app on Windows Taskbar.
2. User runs electron app on 2.0.21. It is installed in C:\Program Files\electron-app\2.0.21\electron-app.exe 
3. User boots up the app. 
4. User gets install prompt. Accepts it.
5. The app downloads. 
### Electron-App: 
* Creates a new folder 2.0.22. 
* Installs Electron-app in the  2.0.22. 
* Deletes folder 2.0.21.
* leaves the dock icon referencing a folder and .exe that doesn't exist.

Ideal situation:

When you do an auto-update, the pinned Taskbar icon continues to work.

Assumptions:

Currently Electron-App structure is: Program_Files\Electron-App-Name\Version\Electron-App.exe Uninstalling is easy because it uninstalls the entire Version folder.

Potential Proposal:

Move the .exe outside of the version folder? Electron-App Structure:

  • Program_files\Electron-App-Name\Electron-App.exe
  • Program_files\Electron-App-Name\Version\Electron-App files (including uninstall)

Note: The above proposal is just a suggestion, I am open to whatever the best technical implementation is (I trust you know better than me).

References: #884

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Jun 13, 2017

Fixed (If allowToChangeInstallationDirectory is not set to true). Thanks to @MariaDima

1reaction
clusterberriescommented, Apr 4, 2017

Hi! Is there any workaround for this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how do i remove a dead 'pinned to taskbar' icon
Now I can't use this shortcut - it returns a Server not found. I can't unpin it, alter/correct the URL or pin a...
Read more >
Pin icons to taskbar - nsis - Stack Overflow
@Anders Ofcourse I will give a checkbox option at install time to user to decide whether to pin or not. Even placing desktop...
Read more >
Acrobat icon in Windows 10 menu
Go to C: > ProgramData > Microsoft > Windows > Start Menu > Programs and you'll find the " Adobe Acrobat DC "...
Read more >
How to Use the Multi-Display Function on Windows 10 - Eizo
Learn how to connect and configure multiple computer monitors with Windows 10's dual monitor taskbar for notebook or desktop PC.
Read more >
can I lock the task bar so the icons don't rearrange themselves?
FooBar which is a very old (1998) program that I use to store log in details and for reminders. FreeCommander XE instead of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found