Skip to content

fix(desktop): recover windows app updates - #1415

Merged
nixuuu merged 2 commits into
devfrom
fix/windows-app-update-installer
Nov 28, 2026
Merged

nixuuu merged 2 commits into
devfrom
fix/windows-app-update-installer

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Windows app updates

  • Confirm the running app matches the per-user NSIS registration. A separate machine-wide registration no longer blocks that installation. Installer metadata, directory permissions, checksum and publisher checks still apply.
  • Start the verified installer in silent per-user mode after services stop, then quit after Windows confirms process creation. If launch fails, restart the current version. Local updates offer Show installer for manual recovery.
  • Give Windows users Retry app update or Update manually in the error details. Dismiss acknowledges the previous failure. Add regression coverage for install scope, spawn errors, and retrying a missing staged installer.

Thanks to @marcinniewinski for reporting this.

Fixes: #479

Verification

  • Locally on Linux at 7524a9ab5, formatting and lint passed for the 11 edited code files. All four focused updater unit tests passed. The diff check passed.
  • PR CI covers repository checks, affected client builds and desktop regression tests. The signed Windows desktop packaging workflow covers installer signatures and installation on protected dev. It does not cover an in-app update between signed versions.
  • Windows validation still needs an ordinary user to update an existing signed per-user installation, including a custom directory and a separate machine-wide registration. Check that Canopy returns on the new version with its services running, that a blocked launch returns to the current version, and that machine-wide installs offer manual recovery without automatic elevation. The original reported error has not been reproduced.

Copy audit

The error disclosure previously offered Dismiss alongside a failed app request. It now offers the action appropriate to the local state. The labels use existing app update terms and start with verbs. The native dialog explains the failure and how to find the installer. The labels and error text carry meaning without color. The changed labels are fixed strings and reuse the existing disclosure and button styles. Responsive rendering and the native dialog layout still need a runtime check.

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 09:32
@nixuuu
nixuuu merged commit 6011c46 into dev Nov 28, 2026
25 checks passed
@nixuuu
nixuuu deleted the fix/windows-app-update-installer branch November 28, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant