-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Labels
Command-InstallIssue related to WinGet InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
machine is the only scope available for HWINFO:
https://github.com/microsoft/winget-pkgs/blob/master/manifests/r/REALiX/HWiNFO/8.00/REALiX.HWiNFO.installer.yaml
That means using --scope machine should make no difference, as the machine scope will be used no matter what.
However, explicitly using --scope machine in the install command causes an Access denied error.
PS > winget install --id REALiX.HWiNFO --scope machine
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : Access is denied.
Omitting --scope machine leads to a successful install:
PS > winget install --id REALiX.HWiNFO
Found HWiNFO [REALiX.HWiNFO] Version 8.00
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://sourceforge.net/projects/hwinfo/files/Windows_Installer/hwi64_800.exe/download
██████████████████████████████ 12.6 MB / 12.6 MB
Successfully verified installer hash
Starting package install...
The installer will request to run as administrator, expect a prompt.
Successfully installed
Steps to reproduce
- Use a standard user account
winget install --id <package-name>where<package_name>is a package that only has themachinescope in its manifest
Expected behavior
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : Access is denied.
Actual behavior
Successfully installed
Environment
Windows Package Manager v1.7.10861
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.3447
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.0pedrohgmacedo, o-l-a-v, wickles, MrGcGamer, mdanish-kh and 1 more
Metadata
Metadata
Assignees
Labels
Command-InstallIssue related to WinGet InstallIssue related to WinGet InstallIssue-BugIt either shouldn't be doing this or needs an investigation.It either shouldn't be doing this or needs an investigation.