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)
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: