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
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.
Expected Behavior
Installer completes without any issue.
Actual Behavior
Installer completes with error on updating the
PATH
variable.Steps to Reproduce the Problem
winget update Balena.BalenaCLI
Specifications
Additional
I don't know if this error relates to updating the current
PATH
variable of the current console session or to thePATH
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.
API documentation says one should not use more than 2048 characters (https://learn.microsoft.com/en-us/dotnet/api/system.environment.setenvironmentvariable?view=net-8.0#system-environment-setenvironmentvariable(system-string-system-string))
The text was updated successfully, but these errors were encountered: