Skip to content

Machine-scope installation (ALLUSERS=1) writes PATH to installing user's HKCU instead of system PATH #29160

Description

@AlexVF26

Issue Description

For a machine-scope installation (ALLUSERS=1), the installer should add the Podman installation directory to the system PATH: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
so that Podman is available for all users on the device, but Instead, the PATH entry is written to: HKCU\Environment\Path

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install Podman MSI in System Context as machine-wide installation: msiexec /i podman-installer-windows-amd64.msi ALLUSERS=1
  2. Try to run podman info as different user - it will fail.

Describe the results you received

Observed behavior

  • Podman installed to C:\Program Files\Podman
  • MSI_Log: WriteEnvironmentStrings action completed successfully
  • MSI_Log: EnvEntriesComponent was installed (Action: Local)
  • No PATH update in HKLM system environment
  • PATH update found in the installing user's HKCU environment

Impact
This affects enterprise deployments (Intune, MECM/SCCM, EPM, installations as SYSTEM, etc.), where Podman is installed successfully but is not available in PATH for end users without additional remediation.

Describe the results you expected

For a machine-scope installation (ALLUSERS=1), the installer should add the Podman installation directory to the system PATH: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path so that Podman is available for all users on the device.

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions