[Package Issue]: Notepad++.Notepad++
- Elevated User No Perms on $env:Temp\Winget
#2927
Open
2 tasks done
Labels
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
I couldn't upgrade Notepad++ because my elevated user could not access my current users
$env:TEMP\Winget
folder.I run
winget upgrade --id Notepad++.Notepad++ --exact
as a non Administrator ( e.g. not in theAdministrators
group).winget
writes out the npp installer to$env:TEMP\WinGet
. The UAC prompt asks me to elevate which I do as another local user. The upgrade fails because it can't touch the aforementioned folder. This folder's permissions are automatically set and reset upon each run to only be accessible bySYSTEM
or the current user.Steps to reproduce
winget upgrade --id Notepad++.Notepad++ --exact
as a non-Admin user and then elevate with a different local user.Actual behavior
Installer fails with a pop-up that it can't access the path.
Expected behavior
Upgrade should complete successfully.
Environment
Screenshots and Logs
No response
Workaround
I used
add-localgroupMember -Member 'user' -Group 'Administrators'
and then didwinget upgrade
and thenremove-localgroupmember -Member 'user' -Group 'Administrators'
.The text was updated successfully, but these errors were encountered: