Closed Wallby closed 3 months ago
Hello,
I am afraid that this is an issue that cannot be fixed due to the way in which Windows works. Each process (and their children) have their immutable env variables at launch, and they are not updated until the program is restarted. I am afraid that this is not a but with WingetUI, but rather an issue with how Windows handles env variables
@marticliment
I am afraid that this is an issue that cannot be fixed due to the way in which Windows works. Each process (and their children) have their immutable env variables at launch, and they are not updated until the program is restarted. I am afraid that this is not a but with WingetUI, but rather an issue with how Windows handles env variables
I read here that explorer.exe will send (i.e. HWND_BROADCAST) a WM_SETTINGCHANGE to all windows if an environment variable was modified.. https://serverfault.com/a/8856
After the changes are saved, Explorer broadcasts a WM_SETTINGCHANGE message to all windows to inform them of the change. Any programs spawned via Explorer after this should get the updated environment, although already-running programs will not, unless they handle the setting change message.
I will explore this
Please confirm these before moving forward
Describe your issue
With WingetUI running, I added the environment variablers RUSTUP_HOME and CARGO_HOME, and then I tried to install Rustlang.Rustup interactively.
This installer opens a cmd.exe window and outputs the paths used. I tried to cancel and then restart the installation, but this didn't work. The only way for the new environment variables to be detected was to close WingetUI entirely and then restart it.
Steps to reproduce the issue
Rustup metadata and toolchains will be installed into the Rustup home directory, located at:
there was the default valueRustup metadata and toolchains will be installed into the Rustup home directory, located at:
there was the new valueWingetUI Log
Package Managers Logs
Relevant information
Tested using WingetUI 2.2.0 (i.e. the latest stable release) on Windows 10.
Screenshots and videos
No response