You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows installer complains about not being able to update the PATH variable #2897
Installer completes with error on updating the PATH variable.
Steps to Reproduce the Problem
winget update Balena.BalenaCLI
Specifications
balena CLI version: 20.1.0
Operating system version: Windows 26120.2702 (Win11, 24H2 Dev Insider)
32/64 bit OS and processor: 64-bit
Install method: winget (uses installer.exe)
Additional
I don't know if this error relates to updating the current PATH variable of the current console session or to the PATH variable in the system environment, which resides in the registry.
From my quick research the limit doesn't seem to be 1024 and also not 2048. Because I am above those and got no issues.
Manually checking the path results in 1853 characters. And checking the raw value in the registry it is only 796 characters.
The path in registry also contains many vars like %USERPROFILE, which shortens it even more.
From my research the supported length could be 4096 or even more.
Activity
Misiu commentedon Apr 7, 2025
same issue with balena cli v21.1.8