Skip to content

install.ps1 PATH update flattens REG_EXPAND_SZ entries #27

Description

@simonnordberg

From the agent-tools review (pre-existing, shipped in #24): the auto-PATH write in scripts/install.ps1 reads the user Path with GetEnvironmentVariable (expands %VAR% entries) and writes the expanded string back, flattening REG_EXPAND_SZ entries like %USERPROFILE%\bin. When no user Path exists it also writes a dangling semicolon. Read/write the raw registry value (DoNotExpandEnvironmentNames) and handle the empty case.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions