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 }}
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
See the issue here.
Consider the below method instead.
$key=Get-Item'HKCU:\Environment\'# Will get the non-expanded values$existingPath=$key.GetValue('PATH','','DoNotExpandEnvironmentNames')
$newPath="${existingPath};%TEST_VAR%"$key.SetValue('PATH',$newPath,'ExpandString')
Expected behavior
`$env:Path` maintains itself as an expand registry key.
Actual behavior
`$env:Path` is converted from the registry expand type.
Prerequisites
Steps to reproduce
Install with
aka.ms/install-aishell.ps1.The script uses the
SetEnvironmentVariablemethod which altersPath's registry key type.AIShell/tools/scripts/install-aishell.ps1
Lines 133 to 140 in 75e956f
See the issue here.
Consider the below method instead.
Expected behavior
`$env:Path` maintains itself as an expand registry key.Actual behavior
`$env:Path` is converted from the registry expand type.Error details
No ErrorEnvironment data
Version
Latest
Visuals
N/A