Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions OpenBitFun-Installer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,21 @@ src-tauri/target/release-fast/openbitfun-installer.exe

### Installation, updates and recovery

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

Multiple installation directories can coexist. New directories have separate
Windows uninstall entries and shortcuts labeled with their location and a stable
directory identifier. Updating or uninstalling one directory preserves the
others. Legacy uninstall entries and shortcuts remain supported. Model settings
and sessions continue to use the existing user data directory; installing another
copy does not create an isolated user profile.

Installations record their managed files in `.openbitfun-installed.json`.
Updates and uninstallations preserve other files and user data. A running or
locked file produces an error and restores earlier changes. Close OpenBitFun
Expand All @@ -260,6 +268,21 @@ exits after the maintenance worker is ready. Installation failures after exit
are reported by a native dialog and retained for the next application launch.
The restarted application runs under the original user's account.

Native maintenance also accepts legacy NSIS arguments: `/D=` selects an install
directory, `/S` requests silent execution, `/P` requests passive execution, and
`_?=` selects the uninstall directory. Uninstall entrypoints retain their operation
when `/UPDATE` is present. `/R /ARGS ...` restarts with the original application
arguments and user token. Native `--quiet` keeps its `0`/`1`/`2` outcome contract;
legacy NSIS uninstall callers receive `0` after successful removal with deferred
cleanup, with the committed journal retained for a later cleanup retry.

The application and installer share Windows scope detection, including legacy
HKLM records without a new inventory. Same-directory HKCU/HKLM duplicates are
both backed up and removed on uninstall; records for other directories remain.
Protected installation or maintenance-lock locations request elevation before
publication. Cleanup removes the transaction journal last, so cleanup failures
remain retryable.

Uninstall can be entered through Windows Settings, the registered uninstall
command, or `uninstall.exe` in the installation directory. `--quiet` selects
non-interactive removal. Uninstall progress reflects native operations and the
Expand Down
2 changes: 1 addition & 1 deletion OpenBitFun-Installer/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dirs = "5.0"
zip = { version = "9.0.3", default-features = false, features = ["deflate"] }
openbitfun-core-types = { path = "../../src/crates/contracts/core-types" }
openbitfun-ai-adapters = { path = "../../src/crates/adapters/ai-adapters" }
openbitfun-services-core = { path = "../../src/crates/services/services-core", features = ["json-io"] }
openbitfun-services-core = { path = "../../src/crates/services/services-core", features = ["json-io", "installed-apps"] }

[target.'cfg(windows)'.dependencies]
winreg = "0.52"
Expand Down
Loading
Loading