Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing support for REG_EXPAND_SZ environment variables, which notably means that PATH cannot be properly updated #6

Open
mklement0 opened this issue Aug 10, 2023 · 0 comments

Comments

@mklement0
Copy link

Regrettably, the .NET APIs as of this writing (preview version of .NET 8) also have this limitation - see:

Still, using the registry APIs directly offers a workaround.
(After a direct registry update, a WM_SETTINGCHANGE broadcast message must be posted to notify (at least) the Windows shell of the update).

Having proper support for REG_EXPAND_SZ env. vars. is important, especially given that neither the .NET APIs nor setx.exe (properly) provide it.

@mklement0 mklement0 changed the title Lack support for REG_EXPAND_SZ environment variables, which notably means that PATH cannot be properly updated Missing support for REG_EXPAND_SZ environment variables, which notably means that PATH cannot be properly updated Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant