microsoft / microsoft/winget-cli
PowerShell module doesn't cancel download & installation with Ctrl-C
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
When I press Ctrl + C, I expect that the package download & installation would be cancelled by PowerShell module. That is not the case as both continue silently in the background without user's knowledge. The svchost process continues to download the file and the module initiates the usual installation flow after the download finishes. Observe in the short 40sec video below (the video is sped up):
https://github.com/user-attachments/assets/945a8231-8851-4da3-8f07-34f043a65758
Steps to reproduce
Try an Upgrade-WinGetPackage command and press Ctrl + C when the package is being downloaded
Expected behavior
Package download and installation to be cancelled
Actual behavior
Download and installation continues as normal
Environment
~ Get-Module Microsoft.WinGet.Client | Select Version
Version
-------
1.9.25190
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
Start by reproducing the issue with Upgrade-WinGetPackage and Ctrl-C while the package is downloading. Trace the PowerShell module's download and installation flow, including the svchost download process, to identify where cancellation is lost. Done means Ctrl-C stops both the download and the subsequent installation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100