microsoft / microsoft/winget-cli

VisualStudio 2022 Installer - abort results in successfully installed

Open
#2,214 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

I tried to install VS2022 using winget install -e Microsoft.VisualStudio.2022.Community

Howerver, I had already a VS Installer Window open so the setup was canceled with this message: "Cannot start another instance of the installer while this instance is running".
This is totally fine and expected. But when I close this message winget seems to assume the installation was completed as it prints out "Successfully installed"

Steps to reproduce

Open Visual Studio Installer then execute winget install -e Microsoft.VisualStudio.2022.Community

Expected behavior

Writing out an error that the installation was canceled or failed.

Actual behavior

Message saying: "Installation successfully"

Environment
Windows Package Manager v1.2.10941

Windows: Windows.Desktop v10.0.22000.675
Package: Microsoft.DesktopAppInstaller v1.17.10941.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening Visual Studio Installer and running winget install -e Microsoft.VisualStudio.2022.Community. Trace how the CLI handles the installer’s cancellation result, and consider the work done when this scenario reports cancellation or failure instead of successful installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.