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

Repair-WingetPackageManager deployment operations not marked as complete #4116

Open
Trenly opened this issue Jan 29, 2024 · 1 comment
Open
Labels
Area-Output Issue related to CLI output Issue-Bug It either shouldn't be doing this or needs an investigation. PowerShell Issue related to WinGet PowerShell Module or cmdlet

Comments

@Trenly
Copy link
Contributor

Trenly commented Jan 29, 2024

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
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jan 29, 2024
@stephengillie stephengillie added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jan 30, 2024
@Trenly
Copy link
Contributor Author

Trenly commented Jan 30, 2024

[Policy] Powershell
[Policy] Area-Output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Output Issue related to CLI output 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

2 participants