microsoft / microsoft/winget-cli
`InstallerHashOverride` can't be enabled on user/MSStore installs?
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
I have installed winget/App Installer through MSStore, i.e. it is a per-user install on a non-admin account.
If I want to override hash mismatches I have to enable "InstallerHashOverride", which should be done with administrative privileges. However, since winget is only installed for the non-admin user, I can't run "winget settings --enable InstallerHashOverride" because "Command not found".
Steps to reproduce
Install App Installer/winget as non-admin user from MSStore. Try to run winget settings --enable InstallerHashOverride from an elevated command prompt.
Expected behavior
Being able to override checking the hash of installers.
Actual behavior
I can't enable the override switch because winget isn't recognized as a command.
Environment
Windows-Paket-Manager v1.5.2201
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
Windows: Windows.Desktop v10.0.19045.3324
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.20.2201.0
Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung https://aka.ms/winget-privacy
Lizenzvereinbarung https://aka.ms/winget-license
Hinweise von Drittanbietern https://aka.ms/winget-3rdPartyNotice
Startseite https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale
Administratoreinstellung Status
-----------------------------------------------------
LocalManifestFiles Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride Deaktiviert
LocalArchiveMalwareScanOverride Deaktiviert
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the per-user Microsoft Store installation and run winget settings --enable InstallerHashOverride from an elevated prompt, comparing command resolution between user and machine installs. Done means a non-admin user can enable the setting and use the installer hash override as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100