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 }}
Repository navigation
Cannot install anything under user account without administrative permissions #2665
When installing under an user account without an administrative permissions, any applications requiring an elevated privileges are failed to install with Installer failed with exit code: 1223
Steps to reproduce
create c:\temp and give a full permissions to Users and Administrators of local Windows
set TMP=C:\TEMP
winget install onenote --source msstore
Confirm
Enter an Administrator account password
Installation is failed
Expected behavior
The application can be installed under an user account, when entering an administrative permissions
Actual behavior
Installation is failed with "Windows cannot access c:\temp\winget...\download.exe
The permission analyse shows following:
before installing, c:\temp is empty with following permissions:
Path : Microsoft.PowerShell.Core\FileSystem::C:\temp\winget
Owner : WINPC\alex
Group : WINPC\alex
Access : NT AUTHORITY\SYSTEM Allow 268435456
NT AUTHORITY\SYSTEM Allow FullControl
WINPC\alex Allow 268435456
WINPC\alex Allow FullControl
Cancelling of the installation process shows this error
Environment
winget --info
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22623.875
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0
Activity
mdanish-kh commentedon May 29, 2023
Admin access to TEMP folder was granted in PR #2945
Can you please check to see if it's resolved in the latest preview version of WinGet? (aka.ms/getwingetpreview)