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

[Scope] Gridcoin.Client - No applicable update found #47655

Closed
OfficialEsco opened this issue Feb 22, 2022 · 5 comments
Closed

[Scope] Gridcoin.Client - No applicable update found #47655

OfficialEsco opened this issue Feb 22, 2022 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@OfficialEsco
Copy link
Contributor

OfficialEsco commented Feb 22, 2022

So a little bird told me the 1.3 client supports the AppsAndFeaturesEntries field, so i went looking for issues and stumbled over this awkward issue

Current Manifest

Click for Log
2022-02-22 17:14:08.047 [CORE] WinGet, version [1.3.431-preview], activity [{80246919-FBEE-4698-AB43-D5B0DBA4EC62}]
2022-02-22 17:14:08.047 [CORE] OS: Windows.Desktop v10.0.22000.493
2022-02-22 17:14:08.047 [CORE] Command line Args: "C:\Users\User\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade -m .\g\Gridcoin\Client\5.3.2\
2022-02-22 17:14:08.048 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.431.0
2022-02-22 17:14:08.048 [CORE] IsCOMCall:0; Caller: winget-cli
2022-02-22 17:14:08.050 [CLI ] WinGet invoked with arguments: 'upgrade' '-m' '.\g\Gridcoin\Client\5.3.2\'
2022-02-22 17:14:08.050 [CLI ] Found subcommand: upgrade
2022-02-22 17:14:08.050 [CLI ] Leaf command to execute: root:upgrade
2022-02-22 17:14:08.051 [CLI ] Executing command: upgrade
2022-02-22 17:14:08.052 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-02-22 17:14:08.052 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-02-22 17:14:08.052 [REPO] Adding to source references msstore
2022-02-22 17:14:08.052 [REPO] Adding to source references winget
2022-02-22 17:14:08.052 [REPO] Multiple sources available, creating aggregated source.
2022-02-22 17:14:08.052 [REPO] Adding to aggregated source: msstore
2022-02-22 17:14:08.052 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-02-22 17:14:08.204 [REPO] Response status: 200
2022-02-22 17:14:08.205 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2022-02-22 17:14:08.262 [REPO] Response status: 200
2022-02-22 17:14:08.262 [REPO] Adding to aggregated source: winget
2022-02-22 17:14:08.269 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2022-02-22 17:14:08.269 [CORE] Found matching extension.
2022-02-22 17:14:08.283 [REPO] Opening SQLite Index for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2022.222.1542.299_neutral__8wekyb3d8bbwe\Public\index.db'
2022-02-22 17:14:08.283 [SQL ] Opening SQLite connection: 'file:/C:/Program Files/WindowsApps/Microsoft.Winget.Source_2022.222.1542.299_neutral__8wekyb3d8bbwe/Public/index.db?immutable=1' [1, 40]
2022-02-22 17:14:08.283 [REPO] Opened SQLite Index with version [1.3], last write [2022-02-22 15:42:13.000]
2022-02-22 17:14:08.435 [REPO] Creating PredefinedInstalledSource with filter [None]
2022-02-22 17:14:08.435 [REPO] Creating new SQLite Index [4294967295.4294967295] at ':memory:'
2022-02-22 17:14:08.435 [SQL ] Opening SQLite connection: ':memory:' [6, 0]
2022-02-22 17:14:08.477 [REPO] Examining ARP entries for Machine | X64
2022-02-22 17:14:08.483 [REPO] Examining ARP entries for Machine | X86
2022-02-22 17:14:08.486 [REPO] Examining ARP entries for User | X64
2022-02-22 17:14:08.564 [CLI ] Manifest fields: Name [Gridcoin], Version [5.3.2]
2022-02-22 17:14:08.570 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\User\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2022-02-22 17:14:08.570 [SQL ] Opening SQLite connection: 'C:\Users\User\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' [2, 0]
2022-02-22 17:14:08.571 [REPO] Opened SQLite Index with version [1.3], last write [2022-01-12 17:04:12.000]
2022-02-22 17:14:08.613 [REPO] Opening SQLite Index for ReadWrite at 'C:\Users\User\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2022-02-22 17:14:08.613 [SQL ] Opening SQLite connection: 'C:\Users\User\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' [2, 0]
2022-02-22 17:14:08.614 [REPO] Opened SQLite Index with version [1.3], last write [2022-02-22 17:11:23.000]
2022-02-22 17:14:08.667 [CLI ] Found one app. App id: Gridcoin.Client App name: Gridcoin
2022-02-22 17:14:08.668 [CLI ] Starting installer selection.
2022-02-22 17:14:08.668 [CLI ] Installer [X64,nullsoft,Machine,] not applicable: Installer scope does not match currently installed scope: Machine != User
2022-02-22 17:14:08.668 [CLI ] Installer [X86,nullsoft,Machine,] not applicable: Installer scope does not match currently installed scope: Machine != User
2022-02-22 17:14:08.674 [CLI ] Terminating context: 0x8a150010 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:74

I've tested locally and it does indeed upgrade if you replace Machine with User or just remove the scope.
HOWEVER, it requires Administrator to install and it installs to C:\Program Files\GridcoinResearch.

Click for Pictures

VirtualBoxVM_3mvSXKfl2v
VirtualBoxVM_RBhiX3EtMk
VirtualBoxVM_BvgSY8NgbY
VirtualBoxVM_EPL9AXY7n4

So... Are we using the Scope wrong or is the Package writing to the wrong Registry path?


I have the same issue "No applicable update found" on the following packages:

winget -v
v1.0.11451

winget upgrade

Name ID Version Verfügbar Quelle
Gridcoin Gridcoin.Client 5.2.2 5.3.1 winget

after winget upgrade --all the same packages and versions are available.

If I use winget upgrade Gridcoin.Client I get "No applicable update found"

Originally posted by pocki in microsoft/winget-cli#752 (comment)

@ghost ghost added the Needs-Triage This work item needs to be triaged by a member of the core team. label Feb 22, 2022
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Feb 22, 2022
@denelon
Copy link
Contributor

denelon commented Feb 22, 2022

I think we're going to have to look into this one to determine if there is something we can do, or if it's based on what the installer is doing.

@sitiom
Copy link
Contributor

sitiom commented Mar 2, 2023

@OfficialEsco
Copy link
Contributor Author

The issue is still active unless Version with the fix is merged into the repository, the issue can be closed with

@mdanish-kh
Copy link
Contributor

As described in #100716 (comment), the issue is not completely resolved even after the fix from the upstream repo. 5.4.2 would need to be "installed" first by users and subsequent upgrades will be served by WinGet.

@OfficialEsco would you feel comfortable closing the issue now or should this remain open until WinGet finds a way to reason better about scope differences?

@denelon denelon added this to the 1.7 Packages milestone Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

4 participants