Skip to content

Commit 05d423d

Browse files
authored
Merge pull request #3944 from kev1n77/codex/installer-updater-legacy-compat
fix(installer): preserve legacy updates and allow parallel installations
2 parents a64fcc7 + 6e065e0 commit 05d423d

36 files changed

Lines changed: 2372 additions & 297 deletions

File tree

‎OpenBitFun-Installer/README.md‎

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,21 @@ src-tauri/target/release-fast/openbitfun-installer.exe
236236

237237
### Installation, updates and recovery
238238

239-
The default is a current-user installation. Select “Install for all users” for
240-
a new machine-wide installation; Windows then asks for administrator approval.
241-
An existing installation keeps its directory and scope. Updates to protected
239+
New installations use the current-user scope. The installer does not offer a
240+
scope switch or change a selected directory when editing shortcut preferences.
241+
An existing installation keeps its directory and scope, including legacy
242+
machine-wide installations. Updates to protected
242243
directories request elevation automatically. Canceling authorization leaves the
243244
existing application in place. Model and theme preferences remain with the
244245
original user, including when a different administrator approves maintenance.
245246

247+
Multiple installation directories can coexist. New directories have separate
248+
Windows uninstall entries and shortcuts labeled with their location and a stable
249+
directory identifier. Updating or uninstalling one directory preserves the
250+
others. Legacy uninstall entries and shortcuts remain supported. Model settings
251+
and sessions continue to use the existing user data directory; installing another
252+
copy does not create an isolated user profile.
253+
246254
Installations record their managed files in `.openbitfun-installed.json`.
247255
Updates and uninstallations preserve other files and user data. A running or
248256
locked file produces an error and restores earlier changes. Close OpenBitFun
@@ -260,6 +268,21 @@ exits after the maintenance worker is ready. Installation failures after exit
260268
are reported by a native dialog and retained for the next application launch.
261269
The restarted application runs under the original user's account.
262270

271+
Native maintenance also accepts legacy NSIS arguments: `/D=` selects an install
272+
directory, `/S` requests silent execution, `/P` requests passive execution, and
273+
`_?=` selects the uninstall directory. Uninstall entrypoints retain their operation
274+
when `/UPDATE` is present. `/R /ARGS ...` restarts with the original application
275+
arguments and user token. Native `--quiet` keeps its `0`/`1`/`2` outcome contract;
276+
legacy NSIS uninstall callers receive `0` after successful removal with deferred
277+
cleanup, with the committed journal retained for a later cleanup retry.
278+
279+
The application and installer share Windows scope detection, including legacy
280+
HKLM records without a new inventory. Same-directory HKCU/HKLM duplicates are
281+
both backed up and removed on uninstall; records for other directories remain.
282+
Protected installation or maintenance-lock locations request elevation before
283+
publication. Cleanup removes the transaction journal last, so cleanup failures
284+
remain retryable.
285+
263286
Uninstall can be entered through Windows Settings, the registered uninstall
264287
command, or `uninstall.exe` in the installation directory. `--quiet` selects
265288
non-interactive removal. Uninstall progress reflects native operations and the

‎OpenBitFun-Installer/src-tauri/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dirs = "5.0"
3737
zip = { version = "9.0.3", default-features = false, features = ["deflate"] }
3838
openbitfun-core-types = { path = "../../src/crates/contracts/core-types" }
3939
openbitfun-ai-adapters = { path = "../../src/crates/adapters/ai-adapters" }
40-
openbitfun-services-core = { path = "../../src/crates/services/services-core", features = ["json-io"] }
40+
openbitfun-services-core = { path = "../../src/crates/services/services-core", features = ["json-io", "installed-apps"] }
4141

4242
[target.'cfg(windows)'.dependencies]
4343
winreg = "0.52"

0 commit comments

Comments
 (0)