microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.08k stars 1.44k forks source link

Progress-bar shows only 1% when upgrade Microsoft.WindowsTerminal.Preview #2059

Open TobiasSekan opened 2 years ago

TobiasSekan commented 2 years ago

Brief description of your issue

When i upgrade Microsoft.WindowsTerminal.Preview the progress-bar shows always 1% and the download size is not shown

Steps to reproduce

winget upgrade Microsoft.WindowsTerminal.Preview

Expected behavior

After the download is finished

Actual behavior

The progress-bar is empty and shows 1% and the downloaded size is not shown, after the download was finished

2022-03-31 18_25_15-PowerToys (Preview) x64 Setup

Environment

Windows Package Manager (Preview) v1.3.431-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.1586
Package: Microsoft.DesktopAppInstaller v1.18.431.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
TobiasSekan commented 2 years ago

The log part for the install is

2022-03-31 17:29:43.631 [CORE] Starting StagePackageAsync operation #0: https://github.com/microsoft/terminal/releases/download/v1.13.10733.0/Microsoft.WindowsTerminalPreview_Win10_1.13.10733.0_8wekyb3d8bbwe.msixbundle
2022-03-31 17:29:43.632 [CORE] Begin waiting for operation #0
2022-03-31 17:29:43.632 [CORE] Begin blocking for operation #0
2022-03-31 17:30:00.821 [CORE] Successfully completed #0
2022-03-31 17:30:00.821 [CORE] Starting RegisterPackageByFullNameAsync operation #1: Microsoft.WindowsTerminalPreview_1.13.10733.0_neutral_~_8wekyb3d8bbwe
2022-03-31 17:30:00.836 [CORE] Begin waiting for operation #1
2022-03-31 17:30:00.836 [CORE] Begin blocking for operation #1
2022-03-31 17:30:01.280 [CORE] Deployment operation #1: error 0x80073D02: Unable to install because the following apps need to be closed Microsoft.WindowsTerminalPreview_1.13.10395.0_x64__8wekyb3d8bbwe.
2022-03-31 17:30:01.309 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\****\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2022-03-31 17:30:01.309 [SQL ] Opening SQLite connection: 'C:\Users\****\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2022-03-31 17:30:01.310 [REPO] Opened SQLite Index with version [1.4], last write [2022-03-31 17:29:40.000]

but all other upgrades have two more lines like

2022-03-31 17:29:40.756 [CLI ] Removing installer: C:\Users\****\AppData\Local\Temp\WinGet\IrfanSkiljan.IrfanView.4.60\iview460_x64_setup.exe
2022-03-31 17:29:43.197 [CLI ] Installer hash verified
Masamune3210 commented 2 years ago

Its because you are currently using the app, in this case, Terminal. If you close it the update should proceed. Updating things while they are being actively used tends to end poorly lol