Error 2 on install via Windows Package Manager
See original GitHub issuePrerequisites
- I’m using latest version: v
- I’ve checked Known issues
- I’ve checked Open issues
Description
An Issue was reported in the Windows Package Manager project related to install errors: https://github.com/microsoft/winget-cli/issues/500
Operating system: Windows: Windows.Desktop v10.0.19042.746
Steps to Reproduce
- winget install Stretchly
Expected behavior: The Package should be installed.
Actual behavior: Installer Failed With Exit Code 2
Reproduces how often: 100% on the users machine. I did not encounter the error on my machine.
Additional Information
Comment with logged output: https://github.com/microsoft/winget-cli/issues/500#issuecomment-772331319
Debug information
You can find extra debugging information and location of Logs file on Preferences
-> About
page, after you hit Cmd/Ctrl+D
shortcut.
Please, review information provided there and paste relevant parts here.
If you have changed any settings, please, provide the preferences file. Logs will be a big help, as well.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10 (4 by maintainers)
I just wanted to note here too that the installation now works when using an elevated prompt. If you try to install it from an user prompt, the installation fails while trying to write to
C:\Windows\TEMP
due to the lack of permissions.@hovancik @denelon Yes, the installer (without using winget) works, even when I use the
/S
flag. (I already mentioned that in this winget comment)@denelon May there be an issue with the integrity level in combination with winget and specific installers?