Skip to main content

Module install

Module install 

Source
Expand description

How this AgentMux was installed, and which release file upgrades it (docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4.2).

Read from where the running srv binary is, so nothing has to be passed down from the launcher:

  • Windows portable: srv is in <folder>/runtime/, beside agentmux-portable.marker, and <folder>/agentmux.exe is the launcher. setup.exe installs the same runtime/ (marker included), so a folder with Inno Setup’s uninstaller (unins000.exe) is a setup.exe install;
  • Microsoft Store: under WindowsApps; the Store updates it;
  • Windows setup.exe: any other Windows install;
  • macOS: inside an .app (srv runs nested in it, so the app is the outermost one); it can only be upgraded in place from a folder the user can write, not from the mounted .dmg or an App-Translocated copy;
  • Linux: an AppImage ($APPIMAGE), a portable folder (the marker), or a .deb/.rpm (under /usr or /opt; dpkg’s own file list says which package manager owns it, and the packages’ install helper says whether it can upgrade itself: docs/specs/SPEC_LINUX_PACKAGE_UPGRADE_AND_REPOSITORY_2026_10_24.md).

Enums§

InstallKind
How this AgentMux was installed.

Constants§

PACKAGE_HELPER
What a .deb or .rpm ships to install its own updates as root, through polkit (scripts/agentmux-install-update.sh).

Functions§

detect
How the running AgentMux was installed.
has_uninstaller
Whether dir holds Inno Setup’s uninstaller (unins000.exe, or unins001.exe… when one was already there): a setup.exe install.
linux_portable_root
The Linux portable folder above srv at exe (AgentMux/usr/bin/srv): the one holding agentmux.sh.
outermost_app
The .app srv at exe belongs to, by the bundle layout: srv runs in a helper app nested in AgentMux.app/Contents/Helpers/ (runtime_mode::app_bundle_of).