question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 2 on install via Windows Package Manager

See original GitHub issue

Prerequisites

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

  1. 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:open
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kapsiRcommented, May 28, 2021

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.

1reaction
kapsiRcommented, Apr 6, 2021

@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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
"The system cannot find the file specified" error when installing ...
I'm trying to test the integrity of some ".cab" packages through DISM and Package Manager but I keep getting the generic error message...
Read more >
DISM /start componentcleanup Error: 2 - Microsoft Q&A
I get this error when I run the utility on Server 2016. Deployment Image Servicing and Management tool. Version: 10.0.14393.4169.
Read more >
Package Manager can install only the first package when you ...
Describes a problem that occurs because Package Manager can't manage two or more packages in the same sandbox. To resolve this problem, ...
Read more >
Application installation common error codes reference
This error could stem from something missing for the application, an old package version, or a number of other general errors. Follow the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found