-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Upgrade available but not installing #2037
Comments
Can you provide the log files which are created when you try |
ran that command:
Where are the logs put? (side note: would be great to simply print out "Logs written to XXXX" when you run a command with |
@brandonh-msft you can run |
@brandonh-msft how many instances of MarkdownMonster are displayed in Windows Apps & Features? It's possible we detected an older version, and the newer version was already installed. |
Log in this gist
|
Looks like it may be an issue with [winget-pkgs] specifying the wrong scope -
The installer places the registry entries at
|
Could be. "installBehavior": {
"preferences": {
"scope": "user"
}
} |
That is true, but unless I'm wrong, a preference shouldn't cause the failure, only a requirement should. Is this accurate @denelon ? Either way, when I try it on a sandbox and default settings, I get the same error. Changing the metadata in the manifest seemed to resolve the error in my sandbox environment, so I've opened a few PR's over at winget-pkgs |
If a package supports both scopes, then the preference would be honored. If it only supported the other scope, having the preference would allow the other scope to be used. Or at least that's what it's supposed to do (there might be a bug). |
It's related to what's happening in microsoft/winget-pkgs#47655 (@OfficialEsco) due to the installer placing the registry entry in the incorrect location which prevents the upgrades from working. Some Current User ( Some All Users ( ^ You can take RubyInstallerTeam.Ruby version 3.1.0-1 as an example. It installs to Technically we're meant to use EDIT (below): Here's another example: SumatraPDF. It installs to SumatraPDF's package has |
Gotta love publisher inconsistency |
I have the same issue when I'm trying upgrade --all, --force or for id. Including VS C++ package 2015-2019.
|
This is an entirely different issue; Your issue is that Visual C++ installer itself is giving an error code 1638. |
Hmm, looks like a 1.1 issue (maybe still in 1.2?), VC++ finally installs correctly for me on 1.3... |
I agree, however, it seems like the VC++ installer is finding some other related product. I checked and these product codes don't seem to exist in the repo at all, so I don't know what package they are to
|
This is an example only. I had the same issue with MegaSync and had to force refresh some programs a few times. Apparently the tool is not able to verify if there is the newest version installed and when it runs 'winget upgrade' it returns that it is still there to install, as if it were a cache error. |
MegaSync is yet another completely different issue. The issue with MegaSync is that the publisher does not provide a version number when the package is installed - See microsoft/winget-pkgs#15946 |
@denelon - I believe the original issue here was resolved with microsoft/winget-pkgs#55454 |
thanks a lot, also affect me |
Related: #3011 |
Brief description of your issue
I ask winget for available upgrades. I tell it, then, to upgrade one. It tells me no applicable upgrade was found.
Steps to reproduce
Expected behavior
It should've upgraded Markdown Monster
Actual behavior
It says no upgrade is available despite previously showing me an available one
Environment
> winget --info Windows Package Manager v1.2.10271 Copyright (c) Microsoft Corporation. All rights reserved. Windows: Windows.Desktop v10.0.22572.201 Package: Microsoft.DesktopAppInstaller v1.17.10271.0
The text was updated successfully, but these errors were encountered: