Open Fei1Yang opened 1 year ago
this workflow distributes any change on user&system variables and anything installed on the PATH will be accessible after that (a system restart also fixes, but not practical).
The reason I gave these steps is for both manually fixing the issue for the moment, and to give an idea what should be done to fix the issue for real.
this workflow distributes any change on user&system variables and anything installed on the PATH will be accessible after that (a system restart also fixes, but not practical).
- Open control panel (or Win+S) then "Edit the system environment variables"
- Click on "Environment Variables" button
- No need to change anything, just click "Ok"
- then click "Ok" again
The reason I gave these steps is for both manually fixing the issue for the moment, and to give an idea what should be done to fix the issue for real.
- These steps will immediately fix the PATH along with other system environment variables changes that are not yet reflected to the user.
- Whatever is triggered in the system by these steps can be traced (I hope) and used to fix this winget-cli issue.
This issue is not about updating environment variables, it's about updating filesystem permissions. I think your problem should be tracked in your original issue.
@Fei1Yang thanks for clarifying info. can you please also update the first post to have a "longer" error message so others will not fall into the same mistake.
Brief description of your issue
When a zipped portable package is installed with
--scope machine
, only the user installed that package is granted access to the extracted folder. however unlike the parent, it does not have the "Users" group granted.This resulting standard users cannot use these packages:
Steps to reproduce
winget install --scope machine Rclone.Rclone
) in that terminal.& "C:\Program Files\WinGet\Links\rclone.exe"
).Expected behavior
The installed package should run in step 5.
Actual behavior
Got the
ResourceUnavailable
error instead.Environment