In-app upgrade runs installer twice on Windows #1423

Closed
opened 2018-05-02 15:55:27 +02:00 by tzarebczan · 0 comments
tzarebczan commented 2018-05-02 15:55:27 +02:00 (Migrated from github.com)

The Issue

Based on findings in https://github.com/lbryio/lbry-app/issues/1192#issuecomment-385983017, when using the "Use it now" option, Windows kicks off the installation twice. If a user clicks through it quickly enough, the installation goes according to plan (which means the daemon is closed and upgraded as well!). If you wait a few seconds on the 2nd prompt, the first installer is already running and LBRY starts up - then the 2nd installer is kicked off which closes LBRY, leaves lbrynet-daemon.exe running and then doesn't start back up. First installer is kicked off with --updated --force-run and the 2nd with --updated /S.

When using the "run on close" option, this does not happen. This kicks off the installer with --updated /S.

From first glance, it may be running both the upgrade now version + the shutdown version. Not sure if this is something on our end or if it's electron builder.

Steps to Reproduce

  1. Download 0.21.2, run
  2. Wait for upgrade prompt. Click use it now
  3. Notice two UAC prompts

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on live chat at https://chat.lbry.io --> ## The Issue Based on findings in https://github.com/lbryio/lbry-app/issues/1192#issuecomment-385983017, when using the "Use it now" option, Windows kicks off the installation twice. If a user clicks through it quickly enough, the installation goes according to plan (which means the daemon is closed and upgraded as well!). If you wait a few seconds on the 2nd prompt, the first installer is already running and LBRY starts up - then the 2nd installer is kicked off which closes LBRY, leaves lbrynet-daemon.exe running and then doesn't start back up. First installer is kicked off with --updated --force-run and the 2nd with --updated /S. When using the "run on close" option, this does not happen. This kicks off the installer with --updated /S. From first glance, it may be running both the upgrade now version + the shutdown version. Not sure if this is something on our end or if it's electron builder. ### Steps to Reproduce 1. Download 0.21.2, run 2. Wait for upgrade prompt. Click use it now 3. Notice two UAC prompts ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#1423
No description provided.