Skip to content

[Installation] Winget package path includes version number, causing PATH conflicts and update breakage #829

@igalvit

Description

@igalvit

Description:

Currently, when installing Microsoft.Edit via Winget, the package is installed into a version-specific directory:
%LOCALAPPDATA%\Microsoft\WinGet\Packages\Microsoft.Edit_..._8wekyb3d8bbwe\edit-2.0.0-x86_64-windows\

Issues caused by this implementation:

  • PATH Priority: On Windows 11 systems where edit.exe (v1.2.1) is already present in C:\Windows\System32, the system continues to default to the older version because the Winget path is dynamic and often ranked lower in priority.

  • Broken PATH on Updates: Every time the tool updates (e.g., from 2.0.0 to 2.1.0), the folder name changes. This requires the user to manually update their Environment Variables every single time, which defeats the purpose of a package manager.

  • Command Conflict: Users are forced to manually "Move Up" the user Path over System32, which is reset or ignored when the directory name changes due to a version bump.

Suggested Solution:

Implement a static "link" or "shim" directory (similar to how Scoop or Chocolatey work) where a symlink or an alias points to the current executable. This would allow a single, static entry in the PATH (e.g., ...\Microsoft\WinGet\bin) that remains valid across updates.

Environment:

  • OS: Windows 11 25H2
  • Microsoft Edit version: 2.0.0 (via Winget)
  • System Edit version: 1.2.1 (in System32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-help-wantedWe encourage you to jump in on these!I-taskSmaller tasks. Requires work in the 100s of LOC (usually).P-mediumImportant issues, but not urgent. Example: UI doesn't work, but it's not crashing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions