Expand description
The old versions’ files in a setup.exe install’s runtime\ folder.
Each version’s setup puts agentmux-<ver>.exe, agentmux-<ver>.dll and
agentmux-srv-<ver>-windows.<arch>.exe beside the others (a running old
version’s files are never overwritten), and nothing took the old ones away:
about 95 MB a version. Once this version has run for a while, the launcher
removes all but the one previous version, which stays as the way back.
Only those three names, only older than the running version (compared as numbers, so 0.60.9 is older than 0.60.10), and only in an install with Inno Setup’s uninstaller: a portable folder is a single version by design, and the CEF runtime files and the portable marker are never named here. A file still in use (an older srv that agents are still on) cannot be deleted while it runs; it is skipped and the next start tries again.
Structs§
- Installers
Removed - What removing the installers did.
- Pruned
- What a prune did.
Constants§
- HEALTHY_
AFTER - How long the launcher must have been up before it prunes: a version that came up and stayed up is the one to keep.
- KEEP_
PREVIOUS - Versions older than the running one that stay.
Functions§
- parse_
version 🔒 major.minor.patchand nothing else (no prerelease or build suffix).- prune
- Remove
stale_filesofruntime_dir. - prune_
installers - Remove the installer that upgraded to
running, wherever an older version’s data folder holds it. The folders themselves are left to the guardedoldversionscleanup (srv-core), which has the process scan, idle window and the user’soldversions:cleanopt-in; this only takes the installer, now that the new version is up. - prune_
when_ healthy - Prune the install’s
runtime\and remove the installer of the upgrade, once this launcher has been up forHEALTHY_AFTER, on its own thread. The runtime files are only an install made bysetup.exe; the installer is removed wherever the version layout is the real one. - remove_
installer 🔒 - Remove the installer file that upgraded to
runningfromversion_dir’sdata/updates/<running>/, never the whole folder: before the download layout was fixed, an upgrade unpacked the new app inside that folder, so the running install can live there. Returns the bytes removed. - stale_
files - The files to remove from
runtime_dir: those of every version older thanrunningexcept the newestkeepof them. - version_
in_ 🔒name - The version in one of the three versioned file names,
Nonefor any other name.
Type Aliases§
- Version 🔒