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.

Renaming appId causes AutoUpdater to throw errors on update

See original GitHub issue
  • Version: 22.6.0
  • Electron Version: 8.2.3
  • Electron Type (current, beta, nightly): current
  • Electron-Updater Version: 4.3.1
  • Target: Mac, Windows

When shipping an application with a fixed appId such as "appId": "com.myOrg.myAppName" all works well and the auto-updater is able to ship new versions to the end-user as expected. If you change the appId to something new (such as "appId": "com.myOrg.myRenamedApp") due to rebranding or other reasons, the auto-updater will throw an error due to the mismatch in appId values.

Here’s a screenshot reproing the problem:

image

Our old appId is com.lightspeed.CFD whereas the new one is com.lightspeed.Hub which causes the update to fail.

This is obviously critical as it means it is impossible to rebrand an application automatically without having all users manually download and install a fresh version of the application, and of course the more users your application has the worse this is.

In our case, even a workaround would be helpful and allow us to move forward.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
timchecommented, Feb 2, 2021

@frankrobert-ls were you able to fix this? I’d like to change the appId as well, but I’m afraid it will still break auto-updating.

Never resolved the issue. No workarounds found.

Thanks for your response! Too bad. I can’t believe we are the only people dealing with this. I guess there is no other option other than tell my users to download the update manually.

0reactions
shafayet2368commented, Jun 3, 2021

@frankrobert-ls , any update on this issue in your case? … I am facing the same problem for my app. Any help would be great…

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-updater: Can not find module 'debug' - Stack Overflow
I was trying to implement auto-update feature using electron-updater since I am using electron-builder for the building. I am able to generate ....
Read more >
windows update cannot currently check for updates because ...
Windows Update cannot currently check for updates, because the service is not running... This error message appears while performing a Windows ...
Read more >
How to Throw Exceptions in Node.js - Rollbar
In this post, we'll take a look at what causes these errors in Node.js, and how to recover from them. What can cause...
Read more >
ArangoDB v3.2.10 Documentation - Index of
The UPDATE keyword is followed by the document key (or a document / object with a _key attribute) ... If renaming fails for...
Read more >
Untitled
SongAppId.xml validation\n- updated RocksmithToolkitLib.SongAppId.xml dlc AppIDs\n- improved auto repair of some old toolkit multitone exceptions" ...
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