fix: upgrade tauri-plugin-updater to v2.10.0 to fix duplicate registry entries (#873)#876
Open
parkghost wants to merge 1 commit intocjpais:mainfrom
Open
fix: upgrade tauri-plugin-updater to v2.10.0 to fix duplicate registry entries (#873)#876parkghost wants to merge 1 commit intocjpais:mainfrom
parkghost wants to merge 1 commit intocjpais:mainfrom
Conversation
…y entries (cjpais#873) Upgrade tauri and tauri-plugin-updater to get bundle-specific target resolution, which prevents NSIS-installed users from receiving MSI updates via OTA and creating duplicate registry entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
Looks like we should just be upgrading to tauri 2.10 overall. I will likely be closing this PR and working on this. For now I will leave it open to track. Thank you for the research and testing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before Submitting This PR
Please confirm you have done the following:
Human Written Description
Issue #873 reports that OTA updates create duplicate Windows registry entries. I traced the root cause to
tauri-plugin-updaterv2.9.0 only reading the unsuffixedwindows-x86_64key inlatest.json(which points to MSI), so NSIS-installed users receive MSI updates and end up with both HKCU and HKLM entries. v2.10.0 adds bundle-specific target resolution that fixes this. I verified the fix locally with end-to-end OTA testing on Windows.Related Issues/Discussions
All three issues stem from the same root cause:
tauri-plugin-updaterv2.9.0 cannot distinguish between NSIS and MSI installers, causing NSIS-installed users to receive MSI updates. This creates duplicate registry entries (#873, #159) and requires admin rights that NSIS installs don't normally need (#562).Community Feedback
Multiple users reported duplicate registry entries in #873, #159.
Testing
Root cause
latest.jsonhaswindows-x86_64(unsuffixed, points to MSI) pluswindows-x86_64-nsis/windows-x86_64-msi(suffixed)tauri-plugin-updaterv2.9.0 only reads the unsuffixed keyWhat v2.10.0 does
PR tauri-apps/plugins-workspace#2624 adds bundle-specific target resolution:
tauri-clipatches__TAURI_BUNDLE_TYPE("nsis" or "msi") into the binarywindows-x86_64-nsisorwindows-x86_64-msifirst, falls back towindows-x86_64Local end-to-end verification (2026-02-22)
Built v0.7.7 and v0.7.8 locally with
tauri 2.10.2+tauri-plugin-updater 2.10.0, set up a local OTA server serving both NSIS and MSI artifacts with bundle-specific keys, then ran full OTA update flow through the UI:windows-x86_64-nsis→ NSIS exewindows-x86_64-msi→ MSI .msiNote for maintainer:
[patch.crates-io]update neededThis PR temporarily points
[patch.crates-io]toparkghost/tauribranchhandy-2.10.2(the macOSwork_area.position.yfix cherry-picked onto tauri v2.10.2) so CI can build. Before merging, please:handy-2.10.2branch oncjpais/tauri:git checkout -b handy-2.10.2 tauri-v2.10.2 && git cherry-pick 8ba98c7[patch.crates-io]in this PR to point back tocjpais/tauriFor affected users (NSIS install that received MSI update)
Handy provides both NSIS (.exe) and MSI (.msi) installers. If you were originally installed via NSIS and received an MSI update through OTA, you now have duplicate registry entries (both HKCU and HKLM).
The simplest fix is to uninstall both entries manually and reinstall:
Once the updater is upgraded to v2.10.0, future OTA updates will always deliver the matching installer type, so this issue won't recur.
Screenshots/Videos (if applicable)
AI Assistance
If AI was used: