winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Repair-WingetPackageManager deployment operations not marked as complete

Open Trenly opened this issue 1 year ago • 1 comments

Brief description of your issue

When Repair-WinGetPackageManager is called from within a script, the deployment operation of VCLibs is never marked as completed, causing the progress bars to remain on the screen when called within a script

Steps to reproduce

Within a .ps1 script, call Repair-WinGetPackageManager and ensure there are commands which will prevent the script from exiting after the repair has completed.

Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
Repair-WinGetPackageManager
while ($true) {}

Expected behavior

VCLibs is marked completed after it is installed, and the progress bars disappear after Repair-WinGetPackageManager has completed

Actual behavior

image image

Environment

Clean Windows Sandbox

Trenly avatar Jan 29 '24 22:01 Trenly

[Policy] Powershell [Policy] Area-Output

Trenly avatar Jan 30 '24 15:01 Trenly