pub fn detect() -> InstallMethodExpand description
Classify the installation the current process was launched from.
Falls back to InstallMethod::SelfManaged when the executable path cannot be determined,
which preserves today’s behaviour: an undetectable install is treated as one ant update
owns.