microsoft / winget-pkgs

The Microsoft community Windows Package Manager manifest repository
MIT License
8.68k stars 4.52k forks source link

[Package Issue]: XP890QTFL1X0D0 and Google.Chrome #117700

Closed TotallyMonica closed 1 year ago

TotallyMonica commented 1 year ago

Please confirm these before moving forward

Category of the issue

Installation issue.

Brief description of your issue

While trying to install Google Chrome (ID Google.Chrome) via its name, it points to ID XP890QTFL1X0D0 instead of Google.Chrome

Steps to reproduce

Run

winget install Chrome

Actual behavior

References package ID XP890QTFL1X0D0 (Name: DC Browser - Chrome and IE kernels)

Output:

Found 小智双核浏览器 [XP890QTFL1X0D0] Version 6.0.3.16
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Agreements for 小智双核浏览器 [XP890QTFL1X0D0] Version 6.0.3.16
Version: 6.0.3.16
Publisher: 深圳市常青藤软件科技有限公司
Publisher Url: http://dcbrowser.cqttech.com/
Publisher Support Url: http://ivytech@cqttech.com/
Description:
  DCBrowser is a dual core browser with built-in Chrome 101 and IE kernels, suitable for multiple Windows systems: Win11/Win10/Win8.1/Win8/Win7. It can perfectly support switching between IE7, IE8, and above: IE9/IE10/IE11 version kernels. It also integrates the Google Chrome browser kernel: Chromium101 kernel, which runs faster, performs more stably, and ensures compatibility.

  DCBrowser supports the installation of Google Chrome browser plugin applications and easy access to high-definition video websites such as Facebook, YouTube, Wikipedia, Instagram, Twitter, and Bilibili. DCBrowser has functions such as custom homepage, free PDF conversion to Word, Google full page translation, long screenshots of web pages, one click QR code sharing, sidebar QR code generator, and custom browser full screen wallpaper skin. In the Compatibility mode, all kinds of government websites, bank websites and internal oa are accessed normally, and online banking payment is under no pressure. Supports quick login on WeChat and QQ, as well as cloud synchronization of multiple information such as passwords, bookmarks, and plugins. Support the import function of favorites in Google browser, Edge browser, and Firefox browser; Compared with 2345 browser, QQ Browser, Firefox browser, and UC Browser, DCBrowser has a simple interface, pure and advertising free. It has a smooth experience of opening Amazon, Alibaba, and other online shopping platforms. It is a pure browser driven by user needs and experience.

  This application requires administrator privileges during installation.
License: http://dcbrowser.cqttech.com/licence.html
Privacy Url: http://dcbrowser.cqttech.com/licence.html
Copyright: ms-windows-store://pdp/?ProductId=XP890QTFL1X0D0
Tags:
  chrome,chromium,IE,Camino,Epic,Focos,UR
  Mozilla Firefox,bing,Browser Pro+,Brave
  Yandex,UC,apple Safari,vivaldi,SeaMonkey
  DuckDuckGo,lnternet Explorer,Torch,Avant
  Midjourey,QQ,baidu,2345,X Browser,C Lite
  wikipedia,yahoo,flash,extensions,ChatGPT
  O-browser,Opera GX,BlueSky,BlackHawk,Tor
Agreements:
Category: Utilities & tools
Pricing: Free
Free Trial: No
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
Seizure Warning: https://aka.ms/microsoft-store-seizure-warning
Store License Terms: https://aka.ms/microsoft-store-license

The publisher requires that you view the above information and accept the agreements before installing.
Do you agree to the terms?
[Y] Yes  [N] No:

Expected behavior

Name Chrome should reference package ID Google.Chrome (Name: Google Chrome)

Found Google Chrome [Google.Chrome] Version 116.0.5845.97
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi

Environment

Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2134
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Screenshots and Logs

Relevant Log: 2023-08-22 10:20:38.589 [CORE] WinGet, version [1.5.2201], activity [{77C07CAF-1002-417F-A192-2DB4C3AE9534}] 2023-08-22 10:20:38.591 [CORE] OS: Windows.Desktop v10.0.22621.2134 2023-08-22 10:20:38.591 [CORE] Command line Args: "C:\Users\Monica\AppData\Local\Microsoft\WindowsApps\winget.exe" install Chrome 2023-08-22 10:20:38.591 [CORE] Package: Microsoft.DesktopAppInstaller v1.20.2201.0 2023-08-22 10:20:38.592 [CORE] IsCOMCall:0; Caller: winget-cli 2023-08-22 10:20:38.614 [CLI ] WinGet invoked with arguments: 'install' 'Chrome' 2023-08-22 10:20:38.615 [CLI ] Found subcommand: install 2023-08-22 10:20:38.615 [CLI ] Leaf command to execute: root:install 2023-08-22 10:20:38.630 [CLI ] Executing command: install 2023-08-22 10:20:38.674 [REPO] Default source requested, multiple sources available, adding all to source references. 2023-08-22 10:20:38.675 [REPO] Adding to source references msstore 2023-08-22 10:20:38.677 [REPO] Adding to source references winget 2023-08-22 10:20:38.678 [REPO] Source past auto update time [5 mins]; it has been at least 26725 mins 2023-08-22 10:20:38.682 [REPO] Source past auto update time [5 mins]; it has been at least 26725 mins 2023-08-22 10:20:39.508 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2023-08-22 10:20:39.509 [CORE] Found matching extension. 2023-08-22 10:20:39.525 [CORE] Downloading to path: C:\Users\Monica\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix 2023-08-22 10:20:39.527 [CORE] Started applying motw to C:\Users\Monica\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3 2023-08-22 10:20:39.534 [CORE] Finished applying motw 2023-08-22 10:20:39.535 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source.msix 2023-08-22 10:20:40.320 [CORE] Download completed. 2023-08-22 10:20:40.321 [CORE] Starting AddPackage operation #0: file:///C:/Users/Monica/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1 2023-08-22 10:20:40.331 [CORE] Begin waiting for operation #0 2023-08-22 10:20:40.331 [CORE] Begin blocking for operation #0 2023-08-22 10:20:47.589 [CORE] Successfully completed #0 2023-08-22 10:20:47.619 [REPO] Multiple sources available, creating aggregated source. 2023-08-22 10:20:47.620 [REPO] Adding to aggregated source: msstore 2023-08-22 10:20:47.623 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information 2023-08-22 10:20:47.986 [REPO] Response status: 200 2023-08-22 10:20:47.990 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information 2023-08-22 10:20:48.041 [REPO] Response status: 200 2023-08-22 10:20:48.042 [REPO] Adding to aggregated source: winget 2023-08-22 10:20:48.061 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2023-08-22 10:20:48.062 [CORE] Found matching extension. 2023-08-22 10:20:48.158 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.822.1517.914_neutral8wekyb3d8bbwe\Public\index.db' 2023-08-22 10:20:48.158 [SQL ] Opening SQLite connection #1: 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.822.1517.914_neutral8wekyb3d8bbwe\Public\index.db' [1, 40] 2023-08-22 10:20:48.162 [REPO] Opened SQLite Index with version [1.6], last write [2023-08-22 09:16:48.000] 2023-08-22 10:20:48.296 [REPO] Creating PredefinedInstalledSource with filter [None] 2023-08-22 10:20:48.296 [REPO] Creating new SQLite Index with version [Latest] at ':memory:' 2023-08-22 10:20:48.296 [SQL ] Opening SQLite connection #2: ':memory:' [6, 0] 2023-08-22 10:20:48.436 [REPO] Reading MSI UpgradeCodes 2023-08-22 10:20:48.451 [REPO] Examining ARP entries for Machine | X64 2023-08-22 10:20:48.615 [REPO] Examining ARP entries for Machine | X86 2023-08-22 10:20:48.760 [REPO] Reading MSI UpgradeCodes 2023-08-22 10:20:48.770 [REPO] Examining ARP entries for User | X64 2023-08-22 10:20:49.756 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' 2023-08-22 10:20:49.756 [SQL ] Opening SQLite connection #3: 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0] 2023-08-22 10:20:49.761 [REPO] Opened SQLite Index with version [1.3], last write [2023-07-07 16:06:36.000] 2023-08-22 10:20:49.888 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch 2023-08-22 10:20:50.827 [REPO] Response status: 200 2023-08-22 10:20:50.829 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/XP890QTFL1X0D0?Market=US 2023-08-22 10:20:51.006 [REPO] Response status: 200 2023-08-22 10:20:51.280 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:ProductCode='dcbrowser'[Exact] Include:NormalizedNameAndPublisher='dc browser - chrome and ie kernels'+'深圳市常青藤软件科技有限公司'[Exact] Include:NormalizedNameAndPublisher='dcbrowser'+'深圳市常青藤软件科技有限公司'[Exact] Include:NormalizedNameAndPublisher='小智双核浏览器'+'深圳市常青藤软件科技有限公司'[Exact] 2023-08-22 10:20:51.299 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' 2023-08-22 10:20:51.299 [SQL ] Opening SQLite connection #4: 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0] 2023-08-22 10:20:51.302 [REPO] Opened SQLite Index with version [1.6], last write [2023-08-03 20:57:26.000] 2023-08-22 10:20:51.481 [REPO] Opening pinning index 2023-08-22 10:20:51.481 [REPO] Opening existing pinning index 2023-08-22 10:20:51.481 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db' 2023-08-22 10:20:51.481 [SQL ] Opening SQLite connection #5: 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db' [2, 0] 2023-08-22 10:20:51.486 [REPO] Opened Pinning Index with version [1.0], last write [2023-08-03 20:55:07.000] 2023-08-22 10:20:51.491 [CLI ] Found one app. App id: XP890QTFL1X0D0 App name: DC Browser - Chrome and IE kernels 2023-08-22 10:20:51.497 [CLI ] Starting installer selection. 2023-08-22 10:20:51.504 [CLI ] Completed installer selection. 2023-08-22 10:20:51.504 [CLI ] Manifest fields: Name [小智双核浏览器], Version [6.0.3.16] 2023-08-22 10:20:54.088 [CLI ] Package agreements accepted in prompt 2023-08-22 10:20:54.100 [CLI ] Generated temp download path: C:\Users\Monica\AppData\Local\Temp\WinGet\XP890QTFL1X0D0.6.0.3.16\b83477eaa8a2cca03ae38a6f87789b4e36db00c636d28324c498783f0d874f63 2023-08-22 10:20:54.101 [CORE] Downloading to path: C:\Users\Monica\AppData\Local\Temp\WinGet\XP890QTFL1X0D0.6.0.3.16\b83477eaa8a2cca03ae38a6f87789b4e36db00c636d28324c498783f0d874f63 2023-08-22 10:20:54.103 [CORE] DeliveryOptimization downloading from url: https://file.cdn.cqttech.com/dcbrowser/DCBrowser_1464_6.0.3.30.exe 2023-08-22 10:20:57.541 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\DODownloader.cpp(61)\WindowsPackageManager.dll!00007FFB2C5AB246: (caller: 00007FFB2C58BF18) LogHr(1) tid(72f0) 80D02013 2023-08-22 10:20:57.589 [CLI ] Terminating context: 0x80004004 at D:\a_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\DownloadFlow.cpp:11d

Screenshot output image

stephengillie commented 1 year ago

Hi @TotallyMonica,

It might be necessary to specify the source using -s winget:

PS C:\ManVal> winget search -s winget chrome
Name                                                  Id                         Version        Match
---------------------------------------------------------------------------------------------------------------------
Dichromate                                            Dichromate.Browser         110.0.5481.178 Command: chrome
Google Chrome Dev                                     Google.Chrome.Dev          117.0.5938.0   Command: chrome
Google Chrome Beta                                    Google.Chrome.Beta         117.0.5938.11  Command: chrome
Chrome Remote Desktop Host                            Google.ChromeRemoteDesktop 112.0.5615.26  Tag: chrome
Ginger Chrome                                         Saxo_Broko.GingerChrome    93.0.4529.0
ChromeCacheView                                       NirSoft.ChromeCacheView    2.45
ICBCChromeExtension                                   ICBC.ICBCChromeExtension   1.2.0.0
Google Chrome Canary                                  Google.Chrome.Canary       117.0.5935.0
ChromeDriver for Chrome 111                           Chromium.ChromeDriver      114.0.5735.90
360 极速浏览器X                                       360.360Chrome.X            21.0.1216.0
360极速浏览器                                         360.360Chrome              13.5.2044.0
115浏览器                                             115.115Chrome              25.0.6.5
Google Chrome                                         Google.Chrome              116.0.5845.97
Vision Teacher for Chromebooks Machine-Wide Installer Netop.VisionTeacher        1.7.6.0
Inssist                                               SlashedIo.Inssist          16.1.0         Tag: chrome-extension
PS C:\ManVal>

Verifying the MSStore output:

PS C:\ManVal> winget search -s msstore chrome
Name                               Id             Version
---------------------------------------------------------
DC Browser - Chrome and IE kernels XP890QTFL1X0D0 Unknown
DC Browser - Chrome and IE kernel  XP8BV7F2CT4LDK Unknown
PS C:\ManVal>

I'm unsure if this is a solution or a workaround- the cause seems to be that the MSStore source is default instead of the WinGet source, but changing this might have deeper implications.

TotallyMonica commented 1 year ago

@stephengillie

Attempting to install, it still doesn't resolve.

PS C:\Users\Monica> winget install -s winget chrome
No package found matching input criteria.
TotallyMonica commented 1 year ago

Outputted log with specifying the winget source:

2023-08-22 12:42:54.113 [CORE] WinGet, version [1.5.2201], activity [{1E840BCD-073E-4A6D-A703-D7FEA772C312}]
2023-08-22 12:42:54.114 [CORE] OS: Windows.Desktop v10.0.22621.2134
2023-08-22 12:42:54.114 [CORE] Command line Args: "C:\Users\Monica\AppData\Local\Microsoft\WindowsApps\winget.exe" install -s winget chrome
2023-08-22 12:42:54.114 [CORE] Package: Microsoft.DesktopAppInstaller v1.20.2201.0
2023-08-22 12:42:54.114 [CORE] IsCOMCall:0; Caller: winget-cli
2023-08-22 12:42:54.127 [CLI ] WinGet invoked with arguments: 'install' '-s' 'winget' 'chrome'
2023-08-22 12:42:54.129 [CLI ] Found subcommand: install
2023-08-22 12:42:54.129 [CLI ] Leaf command to execute: root:install
2023-08-22 12:42:54.131 [CLI ] Executing command: install
2023-08-22 12:42:54.156 [REPO] Named source requested, found: winget
2023-08-22 12:42:54.197 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2023-08-22 12:42:54.197 [CORE] Found matching extension.
2023-08-22 12:42:54.274 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.822.1710.958_neutral__8wekyb3d8bbwe\Public\index.db'
2023-08-22 12:42:54.275 [SQL ] Opening SQLite connection #1: 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2023.822.1710.958_neutral__8wekyb3d8bbwe\Public\index.db' [1, 40]
2023-08-22 12:42:54.279 [REPO] Opened SQLite Index with version [1.6], last write [2023-08-22 11:09:29.000]
2023-08-22 12:42:54.546 [REPO] Creating PredefinedInstalledSource with filter [None]
2023-08-22 12:42:54.546 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2023-08-22 12:42:54.546 [SQL ] Opening SQLite connection #2: ':memory:' [6, 0]
2023-08-22 12:42:54.696 [REPO] Reading MSI UpgradeCodes
2023-08-22 12:42:54.707 [REPO] Examining ARP entries for Machine | X64
2023-08-22 12:42:54.865 [REPO] Examining ARP entries for Machine | X86
2023-08-22 12:42:54.993 [REPO] Reading MSI UpgradeCodes
2023-08-22 12:42:55.003 [REPO] Examining ARP entries for User | X64
2023-08-22 12:42:55.942 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2023-08-22 12:42:55.942 [SQL ] Opening SQLite connection #3: 'C:\Users\Monica\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2023-08-22 12:42:55.945 [REPO] Opened SQLite Index with version [1.6], last write [2023-08-22 10:22:45.000]
2023-08-22 12:42:56.107 [CLI ] No app found matching input criteria
2023-08-22 12:42:56.131 [CLI ] Terminating context: 0x8a150014 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\WorkflowBase.cpp:395
denelon commented 1 year ago

The manifest default locale file doesn't specify "chrome" as a moniker.

If a PR is made to add "chrome" as the "Moniker" in the manifest, and no other "single" result matches "chrome" then winget install chrome would find Google.Chrome as the best match.

@vedantmgoyal2009 (https://github.com/microsoft/winget-pkgs/commits?author=vedantmgoyal2009) it looks like you were the most recent author. I assume you've automated that manifest. Do you want to add the moniker "chrome"?

Trenly commented 1 year ago

If a PR is made to add "chrome" as the "Moniker" in the manifest, and no other "single" result matches "chrome" then winget install chrome would find Google.Chrome as the best match.

Latest versions of the manifest now specify the moniker. There is still this issue open which requires specifying the -e tag -