Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell module doesn't cancel download & installation with Ctrl-C #4961

Open
mdanish-kh opened this issue Nov 11, 2024 · 0 comments
Open
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. PowerShell Issue related to WinGet PowerShell Module or cmdlet

Comments

@mdanish-kh
Copy link
Contributor

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):

Vide2o.mp4

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
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage Issue need to be triaged Issue-Bug It either shouldn't be doing this or needs an investigation. PowerShell Issue related to WinGet PowerShell Module or cmdlet and removed Needs-Triage Issue need to be triaged labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. PowerShell Issue related to WinGet PowerShell Module or cmdlet
Projects
None yet
Development

No branches or pull requests

1 participant