Repository navigation
fix(installer): preserve legacy updates and allow parallel installations - #3944
Merged
kev1n77 merged 1 commit intoNov 16, 2026
Merged
Conversation
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.
Summary
Repair Windows installation/update/uninstall compatibility and allow multiple installation directories to coexist while retaining existing installation scope and user data.
/UPDATEis present. Preserve legacy/D=,/S _?=, and/R /ARGSbehavior, including original-token restart and the application-argument boundary.packageKind; verify checksum/signature and actual package format before atomically migrating metadata. Retain invalid/ambiguous cache data for recovery.flockcommand.Type and Areas
Type: bug fix / regression fix / upgrade compatibility.
Areas: Installer, Desktop/Tauri updater, CLI installer/self-update, services-core Windows integration, Web UI, installer locales and documentation.
Motivation / Impact
A legacy in-app update could fail with an empty “Cannot wait for the previous OpenBitFun version to exit” message after the old process had already exited. Other affected paths could select the wrong maintenance operation, fail before requesting administrator access, misreport installer results, reject otherwise valid older caches, or lose recovery state during cleanup. Installing into another directory also rejected the registered installation rather than supporting independent copies.
The changes retain old persisted fields and parameter contracts, add defaulted metadata where needed, and preserve installation/user data when validation or maintenance fails.
Verification
Passed locally on Windows unless stated otherwise:
cargo test --manifest-path OpenBitFun-Installer/src-tauri/Cargo.toml --lib --jobs 1 --config 'profile.dev.package.openbitfun-installer.codegen-units=1' -- --include-ignored(
OPENBITFUN_PACKAGED_VERSION_FIXTUREset to a local packaged Desktop executable.)cargo test --locked -p openbitfun-cli --bin openbitfun self_update::tests --jobs 1cargo test --locked -p openbitfun-services-core --no-default-features --features installed-apps --lib installation_scope::tests --jobs 1pnpm --dir src/web-ui exec vitest run src/infrastructure/api/service-api/SystemAPI.test.ts src/infrastructure/updatenode --test scripts/updater-maintenance.test.mjs src/apps/cli/install.test.mjs OpenBitFun-Installer/scripts/build-installer.test.cjs scripts/data-tools-tauri-build.test.mjs(
OPENBITFUN_INSTALLER_FIXTUREset to the built native installer.)node --test src/apps/cli/install.test.mjspnpm run check:web,pnpm run i18n:audit,pnpm run check:repo-hygiene,git diff --check, and the Git object-size check passed.Reviewer Notes
AI-assisted. Testing level: targeted automated verification with partial platform coverage.
The normal Desktop Rust test targets compile, but their Windows test executables fail before entering libtest with
0xc0000139 / STATUS_ENTRYPOINT_NOT_FOUND, matching the Tauri test-loader limitation already documented in CI. Independently compiling/running the production cache/update/Windows-maintenance modules and their tests passed 22 tests; this does not establish a full Desktop-host run.Real interactive UAC, full macOS/Linux Desktop installation/upgrades, and remote workspace/control/Peer/Detached Dispatch scenarios were not exercised. No UI screenshots were captured.
Checklist