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
23k stars 1.43k forks source link

ARP enumeration code can fail if strings are not proper UTF-16 #761

Closed bradfordzhang closed 3 years ago

bradfordzhang commented 3 years ago

Brief description of your issue

New Features(upgrade,uninstall,list) can't work.

Steps to reproduce

add these into settings.json

"visual": {
        "progressBar": "accent"
    },
    "experimentalFeatures": {
        "uninstall": true,
        "list": true,
        "upgrade": true
    }

and then type winget upgrade Git to the cmd

Expected behavior

Git on my computer should be updated in the CMD.

Actual behavior

打开预定义源失败; 请向 winget 维护人员报告。
执行此命令时发生意外错误:
0x8007139f : �����Դ��״̬����ִ�������������ȷ״̬��

The above translation is

Failed to open predefined source; please report to Winget maintenance.

An unexpected error occurred while executing this command:

0x8007139f : �����Դ��״̬����ִ�������������ȷ״̬��

1.jpg

Environment

[winget --info]
Windows Package Manager v0.2.10191 Preview
Windows: Windows.Desktop v10.0.19042.804
Package: Microsoft.DesktopAppInstaller v1.11.10191.0
denelon commented 3 years ago

There are still some challenges with upgrade. What does the system show when you execute winget upgrade? Is git displayed in the list?

bradfordzhang commented 3 years ago

This is a translated output

C:\Users\dell# winget upgrade

Failed to open predefined source; please report to Winget maintenance.

An unexpected error occurred while executing this command:

0x8007139f
denelon commented 3 years ago

Take a look at #764 I've put a possible work around in that issue. Let me know what kind of results you see please.

bradfordzhang commented 3 years ago
C:\Users\dell# winget --info
Windows Package Manager v0.2.10191 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19042.804
Package: Microsoft.DesktopAppInstaller v1.11.10191.0

One of the log messages is as follow

[log]
2021-2-25 12:33:38.519 [CORE] WinGet, version [0.2.10191], activity [{B9AA13A2-99AE-4881-97B8-D57BF91A5BEC}]
2021-2-25 12:33:38.520 [CORE] OS: Windows.Desktop v10.0.19042.804
2021-2-25 12:33:38.520 [CORE] Command line Args: winget  --info
2021-2-25 12:33:38.520 [CORE] Package: Microsoft.DesktopAppInstaller v1.11.10191.0
2021-2-25 12:33:38.550 [CLI ] WinGet invoked with arguments: '--info'
2021-2-25 12:33:38.550 [CLI ] Leaf command to execute: root
2021-2-25 12:33:38.550 [CORE] Setting action: Get, Type: UserFile, Name: settings.json
2021-2-25 12:33:38.576 [CORE] Settings loaded from settings.json
2021-2-25 12:33:38.576 [CORE] Valid setting Field: .visual.progressBar Value: accent
2021-2-25 12:33:38.576 [CORE] Valid setting Field: .source.autoUpdateIntervalInMinutes Value: 3
2021-2-25 12:33:38.576 [CORE] Setting .experimentalFeatures.experimentalCmd not found. Using default
2021-2-25 12:33:38.576 [CORE] Setting .experimentalFeatures.experimentalArg not found. Using default
2021-2-25 12:33:38.576 [CORE] Setting .experimentalFeatures.experimentalMSStore not found. Using default
2021-2-25 12:33:38.576 [CORE] Valid setting Field: .experimentalFeatures.list Value: 1
2021-2-25 12:33:38.576 [CORE] Valid setting Field: .experimentalFeatures.upgrade Value: 1
2021-2-25 12:33:38.576 [CORE] Valid setting Field: experimentalFeatures.uninstall Value: 1
2021-2-25 12:33:38.576 [CLI ] Executing command: root
2021-2-25 12:33:38.632 [CLI ] Leaf command succeeded: root

The firewall is turned off and there is no VPN

C:\Users\dell# winget source update
正在更新所有源...
正在更新源: winget...
  ██████████████████████████████  100%
完成

Logs are as bellow

2021-2-25 12:36:32.723 [CORE] WinGet, version [0.2.10191], activity [{553515C4-F510-4125-A0EE-33968777A9C6}]
2021-2-25 12:36:32.724 [CORE] OS: Windows.Desktop v10.0.19042.804
2021-2-25 12:36:32.724 [CORE] Command line Args: winget  source update
2021-2-25 12:36:32.724 [CORE] Package: Microsoft.DesktopAppInstaller v1.11.10191.0
2021-2-25 12:36:32.756 [CLI ] WinGet invoked with arguments: 'source' 'update'
2021-2-25 12:36:32.756 [CLI ] Found subcommand: source
2021-2-25 12:36:32.756 [CLI ] Found subcommand: update
2021-2-25 12:36:32.756 [CLI ] Leaf command to execute: root:source:update
2021-2-25 12:36:32.756 [CORE] Setting action: Get, Type: UserFile, Name: settings.json
2021-2-25 12:36:32.783 [CORE] Settings loaded from settings.json
2021-2-25 12:36:32.783 [CORE] Valid setting Field: .visual.progressBar Value: accent
2021-2-25 12:36:32.783 [CORE] Valid setting Field: .source.autoUpdateIntervalInMinutes Value: 3
2021-2-25 12:36:32.783 [CORE] Setting .experimentalFeatures.experimentalCmd not found. Using default
2021-2-25 12:36:32.783 [CORE] Setting .experimentalFeatures.experimentalArg not found. Using default
2021-2-25 12:36:32.783 [CORE] Setting .experimentalFeatures.experimentalMSStore not found. Using default
2021-2-25 12:36:32.783 [CORE] Valid setting Field: .experimentalFeatures.list Value: 1
2021-2-25 12:36:32.783 [CORE] Valid setting Field: .experimentalFeatures.upgrade Value: 1
2021-2-25 12:36:32.783 [CORE] Valid setting Field: experimentalFeatures.uninstall Value: 1
2021-2-25 12:36:32.783 [CLI ] Executing command: update
2021-2-25 12:36:32.783 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2021-2-25 12:36:32.785 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2021-2-25 12:36:32.808 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2021-2-25 12:36:32.809 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2021-2-25 12:36:32.809 [REPO] Named source to be updated, found: winget
2021-2-25 12:36:32.823 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2021-2-25 12:36:32.823 [CORE] Found matching extension.
2021-2-25 12:36:35.584 [CORE] Downloading to path: C:\Users\dell\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2021-2-25 12:36:35.586 [CORE] Started applying motw to C:\Users\dell\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\TempState\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2021-2-25 12:36:35.590 [CORE] Finished applying motw
2021-2-25 12:36:35.590 [CORE] Downloading from url: https://winget.azureedge.net/cache/source.msix
2021-2-25 12:36:37.034 [CORE] Download completed.
2021-2-25 12:36:37.035 [CORE] Starting AddPackage operation #0: file:///C:/Users/dell/AppData/Local/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe/TempState/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msixSkipSmartScreen: 1
2021-2-25 12:36:37.038 [CORE] Begin waiting for deployment #0
2021-2-25 12:36:37.038 [CORE] Begin blocking for deployment #0
2021-2-25 12:36:38.581 [CORE] Successfully deployed #0
2021-2-25 12:36:38.581 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2021-2-25 12:36:38.583 [CLI ] Leaf command succeeded: root:source:update
C:\Users\dell# ping winget.azureedge.net

正在 Ping cs9.wpc.v0cdn.net [117.18.232.200] 具有 32 字节的数据:
来自 117.18.232.200 的回复: 字节=32 时间=195ms TTL=51
来自 117.18.232.200 的回复: 字节=32 时间=100ms TTL=51
来自 117.18.232.200 的回复: 字节=32 时间=98ms TTL=51
来自 117.18.232.200 的回复: 字节=32 时间=99ms TTL=51

117.18.232.200 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 98ms,最长 = 195ms,平均 = 123ms

seems that there is no problem with my network

bradfordzhang commented 3 years ago

When I do this,it doesn't work

bradfordzhang commented 3 years ago

When I do winget upgrade Git it fail. Logs are as below

2021-2-25 12:50:25.374 [CORE] WinGet, version [0.2.10191], activity [{AF58511C-B8BE-4DB1-9CB3-2A4429516F66}]
2021-2-25 12:50:25.375 [CORE] OS: Windows.Desktop v10.0.19042.804
2021-2-25 12:50:25.375 [CORE] Command line Args: winget  upgrade Git
2021-2-25 12:50:25.375 [CORE] Package: Microsoft.DesktopAppInstaller v1.11.10191.0
2021-2-25 12:50:25.406 [CLI ] WinGet invoked with arguments: 'upgrade' 'Git'
2021-2-25 12:50:25.406 [CORE] Setting action: Get, Type: UserFile, Name: settings.json
2021-2-25 12:50:25.432 [CORE] Settings loaded from settings.json
2021-2-25 12:50:25.432 [CORE] Valid setting Field: .visual.progressBar Value: accent
2021-2-25 12:50:25.432 [CORE] Valid setting Field: .source.autoUpdateIntervalInMinutes Value: 3
2021-2-25 12:50:25.434 [CORE] Setting .experimentalFeatures.experimentalCmd not found. Using default
2021-2-25 12:50:25.434 [CORE] Setting .experimentalFeatures.experimentalArg not found. Using default
2021-2-25 12:50:25.434 [CORE] Setting .experimentalFeatures.experimentalMSStore not found. Using default
2021-2-25 12:50:25.434 [CORE] Valid setting Field: .experimentalFeatures.list Value: 1
2021-2-25 12:50:25.434 [CORE] Valid setting Field: .experimentalFeatures.upgrade Value: 1
2021-2-25 12:50:25.434 [CORE] Valid setting Field: experimentalFeatures.uninstall Value: 1
2021-2-25 12:50:25.434 [CLI ] Found subcommand: upgrade
2021-2-25 12:50:25.434 [CLI ] Leaf command to execute: root:upgrade
2021-2-25 12:50:25.434 [CLI ] Executing command: upgrade
2021-2-25 12:50:25.435 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2021-2-25 12:50:25.436 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2021-2-25 12:50:25.436 [REPO] Default source requested, only 1 source available, using the only source: winget
2021-2-25 12:50:25.436 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2021-2-25 12:50:25.437 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2021-2-25 12:50:25.437 [REPO] Named source requested, found: winget
2021-2-25 12:50:25.437 [REPO] Source past auto update time [3 mins]; it has been at least 5 mins
2021-2-25 12:50:25.451 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2021-2-25 12:50:25.452 [CORE] Found matching extension.
2021-2-25 12:50:28.222 [REPO] Remote source data was not newer than existing, no update needed
2021-2-25 12:50:28.229 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2021-2-25 12:50:28.237 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2021-2-25 12:50:28.237 [CORE] Found matching extension.
2021-2-25 12:50:28.273 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2021.225.122.431_neutral__8wekyb3d8bbwe\Public\index.db'
2021-2-25 12:50:28.273 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2021.225.122.431_neutral__8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40]
2021-2-25 12:50:28.274 [REPO] Opened SQLite Index with version [1.1], last write [2021-2-25 08:22:35.000]
2021-2-25 12:50:28.460 [REPO] Creating PredefinedInstalledSource with filter [None]
2021-2-25 12:50:28.460 [REPO] Creating new SQLite Index [4294967295.4294967295] at ':memory:'
2021-2-25 12:50:28.460 [SQL ] Opening SQLite connection: ':memory:' [6, 0]
2021-2-25 12:50:28.466 [REPO] Examining ARP entries for Machine | X64
2021-2-25 12:50:28.466 [REPO] Adding manifest for [7-Zip, 19.00] at relative path [7-Zip]
2021-2-25 12:50:28.466 [REPO] Did not find an Id { 7-Zip }
2021-2-25 12:50:28.468 [REPO] Adding manifest for [7F099398EDCBBC90F1BC80073B362E20B4011D64, 08/23/2013 8.0.0001.0302] at relative path [7F099398EDCBBC90F1BC80073B362E20B4011D64]
2021-2-25 12:50:28.469 [REPO] Did not find an Id { 7F099398EDCBBC90F1BC80073B362E20B4011D64 }
2021-2-25 12:50:28.470 [REPO] Adding manifest for [BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A67_is1, 7.0.0.65] at relative path [BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A67_is1]
2021-2-25 12:50:28.470 [REPO] Did not find an Id { BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A67_is1 }
2021-2-25 12:50:28.472 [REPO] Adding manifest for [BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A90_is1, 2.0.1.7] at relative path [BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A90_is1]
2021-2-25 12:50:28.472 [REPO] Did not find an Id { BC3D821C-7EFA-41F8-B1C2-8A55DDFE5A90_is1 }
2021-2-25 12:50:28.474 [REPO] Adding manifest for [CCleaner, 5.68] at relative path [CCleaner]
2021-2-25 12:50:28.474 [REPO] Did not find an Id { CCleaner }
2021-2-25 12:50:28.475 [REPO] Adding manifest for [CPUID CPU-Z_is1, 1.93] at relative path [CPUID CPU-Z_is1]
2021-2-25 12:50:28.475 [REPO] Did not find an Id { CPUID CPU-Z_is1 }
2021-2-25 12:50:28.476 [REPO] Adding manifest for [Git_is1, 2.30.1] at relative path [Git_is1]
2021-2-25 12:50:28.476 [REPO] Did not find an Id { Git_is1 }
2021-2-25 12:50:28.478 [REPO] Adding manifest for [HomeStudent2019Retail - zh-cn, 16.0.13628.20448] at relative path [HomeStudent2019Retail - zh-cn]
2021-2-25 12:50:28.478 [REPO] Did not find an Id { HomeStudent2019Retail - zh-cn }
2021-2-25 12:50:28.479 [REPO] Adding manifest for [HuorongSysdiag, 5.0] at relative path [HuorongSysdiag]
2021-2-25 12:50:28.479 [REPO] Did not find an Id { HuorongSysdiag }
2021-2-25 12:50:28.481 [REPO] Adding manifest for [Maxon Cinema 4D S22, S22] at relative path [Maxon Cinema 4D S22]
2021-2-25 12:50:28.481 [REPO] Did not find an Id { Maxon Cinema 4D S22 }
2021-2-25 12:50:28.483 [REPO] Adding manifest for [PotPlayer64, 201209] at relative path [PotPlayer64]
2021-2-25 12:50:28.483 [REPO] Did not find an Id { PotPlayer64 }
2021-2-25 12:50:28.484 [REPO] Adding manifest for [Steam App 220200, Unknown] at relative path [Steam App 220200]
2021-2-25 12:50:28.485 [REPO] Did not find an Id { Steam App 220200 }
2021-2-25 12:50:28.487 [REPO] Adding manifest for [Steam App 246620, Unknown] at relative path [Steam App 246620]
2021-2-25 12:50:28.487 [REPO] Did not find an Id { Steam App 246620 }
2021-2-25 12:50:28.489 [REPO] Adding manifest for [Steam App 271590, Unknown] at relative path [Steam App 271590]
2021-2-25 12:50:28.489 [REPO] Did not find an Id { Steam App 271590 }
2021-2-25 12:50:28.491 [REPO] Adding manifest for [Steam App 322330, Unknown] at relative path [Steam App 322330]
2021-2-25 12:50:28.491 [REPO] Did not find an Id { Steam App 322330 }
2021-2-25 12:50:28.492 [REPO] Adding manifest for [Steam App 365450, Unknown] at relative path [Steam App 365450]
2021-2-25 12:50:28.492 [REPO] Did not find an Id { Steam App 365450 }
2021-2-25 12:50:28.494 [REPO] Adding manifest for [Steam App 431960, Unknown] at relative path [Steam App 431960]
2021-2-25 12:50:28.494 [REPO] Did not find an Id { Steam App 431960 }
2021-2-25 12:50:28.495 [REPO] Adding manifest for [Steam App 477160, Unknown] at relative path [Steam App 477160]
2021-2-25 12:50:28.495 [REPO] Did not find an Id { Steam App 477160 }
2021-2-25 12:50:28.498 [REPO] Adding manifest for [Steam App 480, Unknown] at relative path [Steam App 480]
2021-2-25 12:50:28.498 [REPO] Did not find an Id { Steam App 480 }
2021-2-25 12:50:28.499 [REPO] Adding manifest for [Steam App 503560, Unknown] at relative path [Steam App 503560]
2021-2-25 12:50:28.500 [REPO] Did not find an Id { Steam App 503560 }
2021-2-25 12:50:28.501 [REPO] Adding manifest for [Steam App 551110, Unknown] at relative path [Steam App 551110]
2021-2-25 12:50:28.502 [REPO] Did not find an Id { Steam App 551110 }
2021-2-25 12:50:28.504 [REPO] Adding manifest for [Steam App 644560, Unknown] at relative path [Steam App 644560]
2021-2-25 12:50:28.504 [REPO] Did not find an Id { Steam App 644560 }
2021-2-25 12:50:28.505 [REPO] Adding manifest for [Steam App 668630, Unknown] at relative path [Steam App 668630]
2021-2-25 12:50:28.505 [REPO] Did not find an Id { Steam App 668630 }
2021-2-25 12:50:28.507 [REPO] Adding manifest for [Steam App 730, Unknown] at relative path [Steam App 730]
2021-2-25 12:50:28.507 [REPO] Did not find an Id { Steam App 730 }
2021-2-25 12:50:28.508 [REPO] Adding manifest for [Steam App 736190, Unknown] at relative path [Steam App 736190]
2021-2-25 12:50:28.508 [REPO] Did not find an Id { Steam App 736190 }
2021-2-25 12:50:28.511 [REPO] Adding manifest for [Steam App 774171, Unknown] at relative path [Steam App 774171]
2021-2-25 12:50:28.511 [REPO] Did not find an Id { Steam App 774171 }
2021-2-25 12:50:28.512 [REPO] Adding manifest for [Vim 8.2, 8.2] at relative path [Vim 8.2]
2021-2-25 12:50:28.512 [REPO] Did not find an Id { Vim 8.2 }
2021-2-25 12:50:28.514 [REPO] Adding manifest for [VLC media player, 3.0.12] at relative path [VLC media player]
2021-2-25 12:50:28.514 [REPO] Did not find an Id { VLC media player }
2021-2-25 12:50:28.515 [REPO] Adding manifest for [WinRAR archiver, 5.91.0] at relative path [WinRAR archiver]
2021-2-25 12:50:28.515 [REPO] Did not find an Id { WinRAR archiver }
2021-2-25 12:50:28.517 [REPO] Adding manifest for [{046F527E-3DE6-4D0D-9FEA-053099931721}, 13.1.4001.0] at relative path [{046F527E-3DE6-4D0D-9FEA-053099931721}]
2021-2-25 12:50:28.517 [REPO] Did not find an Id { {046F527E-3DE6-4D0D-9FEA-053099931721} }
2021-2-25 12:50:28.519 [REPO] Adding manifest for [{071c9b48-7c32-4621-a0ac-3f809523288f}, 8.0.56336] at relative path [{071c9b48-7c32-4621-a0ac-3f809523288f}]
2021-2-25 12:50:28.519 [REPO] Did not find an Id { {071c9b48-7c32-4621-a0ac-3f809523288f} }
2021-2-25 12:50:28.521 [REPO] Adding manifest for [{18469ED8-8C36-4CF7-BD43-0FC9B1931AF8}, 3.7.0] at relative path [{18469ED8-8C36-4CF7-BD43-0FC9B1931AF8}]
2021-2-25 12:50:28.521 [REPO] Did not find an Id { {18469ED8-8C36-4CF7-BD43-0FC9B1931AF8} }
2021-2-25 12:50:28.523 [REPO] Adding manifest for [{1A726640-2F1F-4820-AC82-B7179DD11893}, 1.15.7] at relative path [{1A726640-2F1F-4820-AC82-B7179DD11893}]
2021-2-25 12:50:28.523 [REPO] Did not find an Id { {1A726640-2F1F-4820-AC82-B7179DD11893} }
2021-2-25 12:50:28.525 [REPO] Adding manifest for [{1CEAC85D-2590-4760-800F-8DE5E91F3700}, 1910.12.0.1239] at relative path [{1CEAC85D-2590-4760-800F-8DE5E91F3700}]
2021-2-25 12:50:28.525 [REPO] Did not find an Id { {1CEAC85D-2590-4760-800F-8DE5E91F3700} }
2021-2-25 12:50:28.526 [REPO] Adding manifest for [{1D8E6291-B0D5-35EC-8441-6616F567A0F7}, 10.0.40219] at relative path [{1D8E6291-B0D5-35EC-8441-6616F567A0F7}]
2021-2-25 12:50:28.526 [REPO] Did not find an Id { {1D8E6291-B0D5-35EC-8441-6616F567A0F7} }
2021-2-25 12:50:28.528 [REPO] Adding manifest for [{23170F69-40C1-2702-1900-000001000000}, 19.00.00.0] at relative path [{23170F69-40C1-2702-1900-000001000000}]
2021-2-25 12:50:28.528 [REPO] Did not find an Id { {23170F69-40C1-2702-1900-000001000000} }
2021-2-25 12:50:28.533 [REPO] Adding manifest for [{26A24AE4-039D-4CA4-87B4-2F64180241F0}, 8.0.2410.7] at relative path [{26A24AE4-039D-4CA4-87B4-2F64180241F0}]
2021-2-25 12:50:28.533 [REPO] Did not find an Id { {26A24AE4-039D-4CA4-87B4-2F64180241F0} }
2021-2-25 12:50:28.535 [REPO] Adding manifest for [{291E1E02-92A8-4D67-B74A-4A920D759895}, 11.201.0110] at relative path [{291E1E02-92A8-4D67-B74A-4A920D759895}]
2021-2-25 12:50:28.535 [REPO] Did not find an Id { {291E1E02-92A8-4D67-B74A-4A920D759895} }
2021-2-25 12:50:28.536 [REPO] Adding manifest for [{2A0E068A-6121-43D5-93F4-411B0E16BE16}, 14.13.1] at relative path [{2A0E068A-6121-43D5-93F4-411B0E16BE16}]
2021-2-25 12:50:28.537 [REPO] Did not find an Id { {2A0E068A-6121-43D5-93F4-411B0E16BE16} }
2021-2-25 12:50:28.539 [REPO] Adding manifest for [{409CB30E-E457-4008-9B1A-ED1B9EA21140}, 17.2.4.1011] at relative path [{409CB30E-E457-4008-9B1A-ED1B9EA21140}]
2021-2-25 12:50:28.539 [REPO] Did not find an Id { {409CB30E-E457-4008-9B1A-ED1B9EA21140} }
2021-2-25 12:50:28.541 [REPO] Adding manifest for [{41D2D254-D869-4CD8-B440-5DF49083C4BA}, 4.1.0] at relative path [{41D2D254-D869-4CD8-B440-5DF49083C4BA}]
2021-2-25 12:50:28.541 [REPO] Did not find an Id { {41D2D254-D869-4CD8-B440-5DF49083C4BA} }
2021-2-25 12:50:28.543 [REPO] Adding manifest for [{58BDEF15-554A-4AF7-969F-C34918026641}, 5.1.321.7308] at relative path [{58BDEF15-554A-4AF7-969F-C34918026641}]
2021-2-25 12:50:28.543 [REPO] Did not find an Id { {58BDEF15-554A-4AF7-969F-C34918026641} }
2021-2-25 12:50:28.545 [REPO] Adding manifest for [{5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}, 9.0.30729.6161] at relative path [{5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}]
2021-2-25 12:50:28.545 [REPO] Did not find an Id { {5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4} }
2021-2-25 12:50:28.546 [REPO] Adding manifest for [{6F320B93-EE3C-4826-85E0-ADF79F8D4C61}, 2.8.3077.1211] at relative path [{6F320B93-EE3C-4826-85E0-ADF79F8D4C61}]
2021-2-25 12:50:28.547 [REPO] Did not find an Id { {6F320B93-EE3C-4826-85E0-ADF79F8D4C61} }
2021-2-25 12:50:28.548 [REPO] Adding manifest for [{8220EEFE-38CD-377E-8595-13398D740ACE}, 9.0.30729] at relative path [{8220EEFE-38CD-377E-8595-13398D740ACE}]
2021-2-25 12:50:28.548 [REPO] Did not find an Id { {8220EEFE-38CD-377E-8595-13398D740ACE} }
2021-2-25 12:50:28.549 [REPO] Adding manifest for [{8D646799-DB00-4000-AE7A-756A05A4F1D8}, 5.4.72] at relative path [{8D646799-DB00-4000-AE7A-756A05A4F1D8}]
2021-2-25 12:50:28.549 [REPO] Did not find an Id { {8D646799-DB00-4000-AE7A-756A05A4F1D8} }
2021-2-25 12:50:28.550 [REPO] Adding manifest for [{95096479-66A1-454B-9378-234DF3B31727}, 16.1.0] at relative path [{95096479-66A1-454B-9378-234DF3B31727}]
2021-2-25 12:50:28.550 [REPO] Did not find an Id { {95096479-66A1-454B-9378-234DF3B31727} }
2021-2-25 12:50:28.551 [REPO] Adding manifest for [{9668B1BB-D0FE-4C0C-800C-B1555E069A62}, 3.1.940] at relative path [{9668B1BB-D0FE-4C0C-800C-B1555E069A62}]
2021-2-25 12:50:28.551 [REPO] Did not find an Id { {9668B1BB-D0FE-4C0C-800C-B1555E069A62} }
2021-2-25 12:50:28.552 [REPO] Adding manifest for [{986898D9-7C26-4E7F-814C-9B5472FA3209}, 2.0.0.0] at relative path [{986898D9-7C26-4E7F-814C-9B5472FA3209}]
2021-2-25 12:50:28.552 [REPO] Did not find an Id { {986898D9-7C26-4E7F-814C-9B5472FA3209} }
2021-2-25 12:50:28.553 [REPO] Adding manifest for [{99FAF70F-9B61-4AB0-9EC0-B31F98FFDC4A}, 2.75.0.0] at relative path [{99FAF70F-9B61-4AB0-9EC0-B31F98FFDC4A}]
2021-2-25 12:50:28.553 [REPO] Did not find an Id { {99FAF70F-9B61-4AB0-9EC0-B31F98FFDC4A} }
2021-2-25 12:50:28.554 [REPO] Adding manifest for [{9F0CBE43-690B-4C03-8845-6AC2CDB29815}}_is1, 1.20.0] at relative path [{9F0CBE43-690B-4C03-8845-6AC2CDB29815}}_is1]
2021-2-25 12:50:28.554 [REPO] Did not find an Id { {9F0CBE43-690B-4C03-8845-6AC2CDB29815}}_is1 }
2021-2-25 12:50:28.556 [REPO] Adding manifest for [{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}, 8.0.61000] at relative path [{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}]
2021-2-25 12:50:28.556 [REPO] Did not find an Id { {ad8a2fa1-06e7-4b0d-927d-6e54b3d31028} }
2021-2-25 12:50:28.557 [REPO] Adding manifest for [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver, 461.40] at relative path [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver]
2021-2-25 12:50:28.557 [REPO] Did not find an Id { {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.Driver }
2021-2-25 12:50:28.558 [REPO] Adding manifest for [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.GFExperience, 3.21.0.36] at relative path [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.GFExperience]
2021-2-25 12:50:28.558 [REPO] Did not find an Id { {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.GFExperience }
2021-2-25 12:50:28.560 [REPO] Adding manifest for [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.PhysX, 9.19.0218] at relative path [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.PhysX]
2021-2-25 12:50:28.560 [REPO] Did not find an Id { {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_Display.PhysX }
2021-2-25 12:50:28.561 [REPO] Adding manifest for [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_FrameViewSdk, 1.1.4923.29548709] at relative path [{B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_FrameViewSdk]
2021-2-25 12:50:28.561 [REPO] Did not find an Id { {B2FE1952-0186-46C3-BAEC-A80AA35AC5B8}_FrameViewSdk }
2021-2-25 12:50:28.564 [REPO] Adding manifest for [{B5D244EF-C3DE-42BE-8DCC-8263A0D3750F}, 15.0.1200.24] at relative path [{B5D244EF-C3DE-42BE-8DCC-8263A0D3750F}]
2021-2-25 12:50:28.564 [REPO] Did not find an Id { {B5D244EF-C3DE-42BE-8DCC-8263A0D3750F} }
2021-2-25 12:50:28.565 [REPO] Adding manifest for [{BBCDB523-F5B7-4E53-A911-C85191E3BDF0}, 10.0.2606] at relative path [{BBCDB523-F5B7-4E53-A911-C85191E3BDF0}]
2021-2-25 12:50:28.565 [REPO] Did not find an Id { {BBCDB523-F5B7-4E53-A911-C85191E3BDF0} }
2021-2-25 12:50:28.566 [REPO] Adding manifest for [{C5A70974-2F89-4BE0-90F7-749E62468C4D}, 3.8.1.23] at relative path [{C5A70974-2F89-4BE0-90F7-749E62468C4D}]
2021-2-25 12:50:28.566 [REPO] Did not find an Id { {C5A70974-2F89-4BE0-90F7-749E62468C4D} }
2021-2-25 12:50:28.567 [REPO] Adding manifest for [{C81FD018-F151-460F-B4F9-0D58039503E2}, 17.2.4.9002] at relative path [{C81FD018-F151-460F-B4F9-0D58039503E2}]
2021-2-25 12:50:28.567 [REPO] Did not find an Id { {C81FD018-F151-460F-B4F9-0D58039503E2} }
2021-2-25 12:50:28.568 [REPO] Adding manifest for [{EA457B21-F73E-494C-ACAB-524FDE069978}_is1, 1.42.0] at relative path [{EA457B21-F73E-494C-ACAB-524FDE069978}_is1]
2021-2-25 12:50:28.569 [REPO] Did not find an Id { {EA457B21-F73E-494C-ACAB-524FDE069978}_is1 }
2021-2-25 12:50:28.570 [REPO] Examining ARP entries for Machine | X86
2021-2-25 12:50:28.570 [REPO] Adding manifest for [1acdd5fe, 16.8.31019.35] at relative path [1acdd5fe]
2021-2-25 12:50:28.570 [REPO] Did not find an Id { 1acdd5fe }
2021-2-25 12:50:28.572 [REPO] Adding manifest for [8c97ca59, 15.9.28307.1401] at relative path [8c97ca59]
2021-2-25 12:50:28.572 [REPO] Did not find an Id { 8c97ca59 }
2021-2-25 12:50:28.574 [REPO] Adding manifest for [Adobe Creative Cloud, 5.3.1.470] at relative path [Adobe Creative Cloud]
2021-2-25 12:50:28.574 [REPO] Did not find an Id { Adobe Creative Cloud }
2021-2-25 12:50:28.575 [REPO] Adding manifest for [Adobe Flash Player PPAPI, 32.0.0.403] at relative path [Adobe Flash Player PPAPI]
2021-2-25 12:50:28.576 [REPO] Did not find an Id { Adobe Flash Player PPAPI }
2021-2-25 12:50:28.577 [REPO] Adding manifest for [AEFT_17_7, 17.7] at relative path [AEFT_17_7]
2021-2-25 12:50:28.577 [REPO] Did not find an Id { AEFT_17_7 }
2021-2-25 12:50:28.578 [REPO] Adding manifest for [AIDA64 Extreme_is1, 6.32] at relative path [AIDA64 Extreme_is1]
2021-2-25 12:50:28.578 [REPO] Did not find an Id { AIDA64 Extreme_is1 }
2021-2-25 12:50:28.581 [REPO] Adding manifest for [alieditplus, 4.0.0.101] at relative path [alieditplus]
2021-2-25 12:50:28.581 [REPO] Did not find an Id { alieditplus }
2021-2-25 12:50:28.582 [REPO] Adding manifest for [AME_14_9, 14.9] at relative path [AME_14_9]
2021-2-25 12:50:28.582 [REPO] Did not find an Id { AME_14_9 }
2021-2-25 12:50:28.583 [REPO] Adding manifest for [ASIO4ALL, 2.14] at relative path [ASIO4ALL]
2021-2-25 12:50:28.583 [REPO] Did not find an Id { ASIO4ALL }
2021-2-25 12:50:28.585 [REPO] Adding manifest for [AUDT_13_0_13, 13.0.13] at relative path [AUDT_13_0_13]
2021-2-25 12:50:28.585 [REPO] Did not find an Id { AUDT_13_0_13 }
2021-2-25 12:50:28.586 [REPO] Adding manifest for [B5CSGO, 4.9.0.1] at relative path [B5CSGO]
2021-2-25 12:50:28.586 [REPO] Did not find an Id { B5CSGO }
2021-2-25 12:50:28.587 [REPO] Adding manifest for [BandiMPEG1, 0.0.1] at relative path [BandiMPEG1]
2021-2-25 12:50:28.588 [REPO] Did not find an Id { BandiMPEG1 }
2021-2-25 12:50:28.590 [REPO] Adding manifest for [FileZilla Client, 3.46.3] at relative path [FileZilla Client]
2021-2-25 12:50:28.590 [REPO] Did not find an Id { FileZilla Client }
2021-2-25 12:50:28.591 [REPO] Adding manifest for [FL Studio 20, Unknown] at relative path [FL Studio 20]
2021-2-25 12:50:28.591 [REPO] Did not find an Id { FL Studio 20 }
2021-2-25 12:50:28.592 [REPO] Adding manifest for [FL Studio ASIO, Unknown] at relative path [FL Studio ASIO]
2021-2-25 12:50:28.592 [REPO] Did not find an Id { FL Studio ASIO }
2021-2-25 12:50:28.593 [REPO] Adding manifest for [FormatFactory, 5.6.0.0] at relative path [FormatFactory]
2021-2-25 12:50:28.593 [REPO] Did not find an Id { FormatFactory }
2021-2-25 12:50:28.594 [REPO] Adding manifest for [GoLink, 1.0.5.2] at relative path [GoLink]
2021-2-25 12:50:28.594 [REPO] Did not find an Id { GoLink }
2021-2-25 12:50:28.595 [REPO] Adding manifest for [HeyboxAcc, 1.0.99] at relative path [HeyboxAcc]
2021-2-25 12:50:28.595 [REPO] Did not find an Id { HeyboxAcc }
2021-2-25 12:50:28.597 [REPO] Adding manifest for [HuyaClient, Unknown] at relative path [HuyaClient]
2021-2-25 12:50:28.597 [REPO] Did not find an Id { HuyaClient }
2021-2-25 12:50:28.599 [REPO] Adding manifest for [IL Download Manager, Unknown] at relative path [IL Download Manager]
2021-2-25 12:50:28.599 [REPO] Did not find an Id { IL Download Manager }
2021-2-25 12:50:28.600 [REPO] Adding manifest for [InstallShield_{2D76AF66-6E44-4AD8-91B4-CBD509588E99}, 6.0.0089] at relative path [InstallShield_{2D76AF66-6E44-4AD8-91B4-CBD509588E99}]
2021-2-25 12:50:28.600 [REPO] Did not find an Id { InstallShield_{2D76AF66-6E44-4AD8-91B4-CBD509588E99} }
2021-2-25 12:50:28.601 [REPO] Adding manifest for [InstallShield_{EB1AAB19-5EE8-46BD-86CC-146BF85DC170}, 6.0.0193] at relative path [InstallShield_{EB1AAB19-5EE8-46BD-86CC-146BF85DC170}]
2021-2-25 12:50:28.601 [REPO] Did not find an Id { InstallShield_{EB1AAB19-5EE8-46BD-86CC-146BF85DC170} }
2021-2-25 12:50:28.603 [REPO] Adding manifest for [KBRG_11_0_1, 11.0.1] at relative path [KBRG_11_0_1]
2021-2-25 12:50:28.603 [REPO] Did not find an Id { KBRG_11_0_1 }
2021-2-25 12:50:28.605 [REPO] Adding manifest for [MarkdownPad 2 2.5.0.27920, 2.5.0.27920] at relative path [MarkdownPad 2 2.5.0.27920]
2021-2-25 12:50:28.605 [REPO] Did not find an Id { MarkdownPad 2 2.5.0.27920 }
2021-2-25 12:50:28.606 [REPO] Adding manifest for [Microsoft Edge, 88.0.705.74] at relative path [Microsoft Edge]
2021-2-25 12:50:28.607 [REPO] Did not find an Id { Microsoft Edge }
2021-2-25 12:50:28.608 [REPO] Adding manifest for [Microsoft Edge Dev, 90.0.803.0] at relative path [Microsoft Edge Dev]
2021-2-25 12:50:28.608 [REPO] Did not find an Id { Microsoft Edge Dev }
2021-2-25 12:50:28.609 [REPO] Adding manifest for [Microsoft Edge Update, 1.3.141.59] at relative path [Microsoft Edge Update]
2021-2-25 12:50:28.610 [REPO] Did not find an Id { Microsoft Edge Update }
2021-2-25 12:50:28.611 [REPO] Adding manifest for [MouseClick, 1.2.0.0] at relative path [MouseClick]
2021-2-25 12:50:28.611 [REPO] Did not find an Id { MouseClick }
2021-2-25 12:50:28.612 [REPO] Adding manifest for [OBS Studio, 24.0.3] at relative path [OBS Studio]
2021-2-25 12:50:28.612 [REPO] Did not find an Id { OBS Studio }
2021-2-25 12:50:28.613 [REPO] Adding manifest for [Open Codecs, 0.85.17777] at relative path [Open Codecs]
2021-2-25 12:50:28.614 [REPO] Did not find an Id { Open Codecs }
2021-2-25 12:50:28.615 [REPO] Adding manifest for [Origin, 10.5.84.43868] at relative path [Origin]
2021-2-25 12:50:28.615 [REPO] Did not find an Id { Origin }
2021-2-25 12:50:28.616 [REPO] Adding manifest for [PHSP_22_2, 22.2.0.183] at relative path [PHSP_22_2]
2021-2-25 12:50:28.616 [REPO] Did not find an Id { PHSP_22_2 }
2021-2-25 12:50:28.618 [REPO] Adding manifest for [PPRO_14_9, 14.9] at relative path [PPRO_14_9]
2021-2-25 12:50:28.619 [REPO] Did not find an Id { PPRO_14_9 }
2021-2-25 12:50:28.620 [REPO] Adding manifest for [qBittorrent, 4.3.3] at relative path [qBittorrent]
2021-2-25 12:50:28.620 [REPO] Did not find an Id { qBittorrent }
2021-2-25 12:50:28.621 [REPO] Adding manifest for [QeeYou5.1.0, 6.2.0] at relative path [QeeYou5.1.0]
2021-2-25 12:50:28.622 [REPO] Did not find an Id { QeeYou5.1.0 }
2021-2-25 12:50:28.623 [REPO] Adding manifest for [QQ游戏, 5.22.57218.0] at relative path [QQ游戏]
2021-2-25 12:50:28.623 [REPO] Did not find an Id { QQ游戏 }
2021-2-25 12:50:28.624 [REPO] Adding manifest for [Rockstar Games Launcher, 1.0.35.340] at relative path [Rockstar Games Launcher]
2021-2-25 12:50:28.624 [REPO] Did not find an Id { Rockstar Games Launcher }
2021-2-25 12:50:28.626 [REPO] Adding manifest for [Rockstar Games Social Club, 2.0.7.9] at relative path [Rockstar Games Social Club]
2021-2-25 12:50:28.626 [REPO] Did not find an Id { Rockstar Games Social Club }
2021-2-25 12:50:28.626 [REPO] Adding manifest for [Sogou Input, 9.8.0.3746] at relative path [Sogou Input]
2021-2-25 12:50:28.627 [REPO] Did not find an Id { Sogou Input }
2021-2-25 12:50:28.628 [REPO] Adding manifest for [Steam, 2.10.91.91] at relative path [Steam]
2021-2-25 12:50:28.628 [REPO] Did not find an Id { Steam }
2021-2-25 12:50:28.629 [REPO] Adding manifest for [Synology Assistant, 6.1-15030] at relative path [Synology Assistant]
2021-2-25 12:50:28.629 [REPO] Did not find an Id { Synology Assistant }
2021-2-25 12:50:28.630 [REPO] Adding manifest for [TalkLine, 201016124536_master(5.14.1)_3.4.0.210] at relative path [TalkLine]
2021-2-25 12:50:28.631 [REPO] Did not find an Id { TalkLine }
2021-2-25 12:50:28.632 [REPO] Adding manifest for [TDM-GCC, 1.2001.0] at relative path [TDM-GCC]
2021-2-25 12:50:28.632 [REPO] Did not find an Id { TDM-GCC }
2021-2-25 12:50:28.633 [REPO] Adding manifest for [thunder_is1, 11.1.7.1334] at relative path [thunder_is1]
2021-2-25 12:50:28.633 [REPO] Did not find an Id { thunder_is1 }
2021-2-25 12:50:28.636 [REPO] Adding manifest for [UltraISO_is1, Unknown] at relative path [UltraISO_is1]
2021-2-25 12:50:28.636 [REPO] Did not find an Id { UltraISO_is1 }
2021-2-25 12:50:28.638 [REPO] Adding manifest for [Uplay, 102.0] at relative path [Uplay]
2021-2-25 12:50:28.638 [REPO] Did not find an Id { Uplay }
2021-2-25 12:50:28.640 [REPO] Adding manifest for [Uplay Install 46, Unknown] at relative path [Uplay Install 46]
2021-2-25 12:50:28.640 [REPO] Did not find an Id { Uplay Install 46 }
2021-2-25 12:50:28.642 [REPO] Adding manifest for [WeChat, 3.1.3.24] at relative path [WeChat]
2021-2-25 12:50:28.642 [REPO] Did not find an Id { WeChat }
2021-2-25 12:50:28.644 [REPO] Adding manifest for [WeGame, Unknown] at relative path [WeGame]
2021-2-25 12:50:28.644 [REPO] Did not find an Id { WeGame }
2021-2-25 12:50:28.646 [REPO] Adding manifest for [WeMeet, 2.7.6.415] at relative path [WeMeet]
2021-2-25 12:50:28.646 [REPO] Did not find an Id { WeMeet }
2021-2-25 12:50:28.647 [REPO] Adding manifest for [WinPcapInst, 4.1.0.2001] at relative path [WinPcapInst]
2021-2-25 12:50:28.647 [REPO] Did not find an Id { WinPcapInst }
2021-2-25 12:50:28.651 [FAIL] C:\BA\246\s\external\pkg\src\AppInstallerCommonCore\Registry.cpp(15)\AppInstallerCLI.exe!00007FF7BDCC3218: (caller: 00007FF7BDCC24F7) Exception(1) tid(513c) 8007139F 组或资源的状态不是执行请求操作的正确状态。

2021-2-25 12:50:28.875 [CLI ] Caught wil::ResultException: 
JohnMcPMS commented 3 years ago

This is a bug in our registry reading code that I thought was fixed, but somehow was not. It actually suggests that it is bad data in the registry, but we should handle that as best as we can.

There is some registry value that has an odd number of bytes despite being a wide string. We will probably be best served to change the code to remove any stray bytes rather than failing here. Then things will work except for these instances where the name or publisher data may be garbled at the end.

It will probably be hard to get the data to help debug your exact situation, but the entry after WinPcapInst under:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

Contains the value in question.

bradfordzhang commented 3 years ago

this my reg of HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall

myreg.txt

My English is bad,and Chinese translation software is very difficult to use.

can you help me to solve this problem? thanks

yao-msft commented 3 years ago

首先请理解这是一个已知的关于注册表读取代码的bug,我们将会在以后版本中修复。如果您想在修复版本发布之前尝试自己解决这个问题,您需要手动修改注册表。修改注册表可能导致系统不稳定,请备份当前注册表如果您决定尝试下面的方法。

刚才@johnmcpms看了你上面提供的注册表信息,问题应该是出在这一条:[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\zsspeed]

如果您用注册表编辑器(regedit)定位到上述位置,手动打开每一个子项与子项的值并重新保存,那么那些有问题的值可能就会被修复。

bradfordzhang commented 3 years ago

收到,谢谢

JohnMcPMS commented 3 years ago

Reactivating to track the bug.

bradfordzhang commented 3 years ago

我卸载[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\zsspeed]所对应的软件后,winget一切正常

denelon commented 3 years ago

Duplicate of #728

ghost commented 3 years ago

Hi! We've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority.