-
Notifications
You must be signed in to change notification settings - Fork 4.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
'winget upgrade' reports WinDirStat upgradable when latest version is installed #88994
Comments
The latest version of WinDirStat (1.1.2) does not get reported to Apps & Features. Without that information we are not able to determine if the latest version in the community repository is an upgrade or not. The latest version of the Windows Package Manager does a better job of handling this scenario in the UI until the publisher begins reporting the version installed. Below I've installed the package and run the upgrade command. It displays the package with a version that cannot be determined. Then I've run the upgrade command with the "--include-unknown" argument. It then includes WinDirStat in the output with the "Unknown" version that is currently installed.
|
I found WinDirStat issue tracker and reported problem with versioning No sure how developers are active, but this is all I can do ) |
More active repo windirstat/windirstat#2 |
This might be fixed by this microsoft/winget-cli#3134 if it's implemented in winget. Because windirstat has version number in metadata of executable. So for some packages having option to say winget to look into metadata of executable would be able to fix a lot of similar issues to this. |
In case anybody wants to correct it manually until a general fix is available do the following:
|
@ShockwaveNN I have a suspicion. In the Registry it is set for Or maybe you also need to restart the command line window or login in windows again as it maybe is cached. I cannot remember exactly if this was necessary. Edit: |
Yeah, you right But seems like
So probably workaround works only if user you've installed the WinDirStat is Administrator |
For me winget also works in a "normal" (none-admin) PowerShell window. Just as an idea. Does it work in case you set |
Hello @Hobart, This issue has been identified as requiring a fix from a third party or external repository. Since there has been no recent activity on this issue, it will be automatically closed. Template: msftbot/noRecentActivity/areaExternal |
@JoKalliauer Thanks, actually you're right, there was a space at the end of reg key Thanks for help, seems everything is all right when I've applied your registry command |
This is seriously annoying. As per above suggestion, I used this Powershell command (as admin) directly after installing WinDirStat using winget. I run as administrator, but it checks for other users too, to also work if it was previously installed otherwise. Also, it only works for 1.1.2 (based on the DisplayName).
|
Why is this issue closed, given that it is still unresolved? |
Please read ALL previous comments word-by-word before commenting, including the one which closed this issue. Afaik it is a WinDirStat-Bug, see #88994#issuecomment-1428391559, I think it is already fixed (since Dec 2023) in the current source code for WinDirStat. If you expect a Workaround by WinGet, be more specific, as e.g. another previous comment. I recommend fixing it for WinDirStat 1.1.2 locally according to another previous comment. |
I'm not a fan of bots auto-closing unresolved issues. Ninite doesn't seem to have this problem of installing the same version of windirstat over and over again . Apparently, their developers took responsibility that their updater should at least be smart enough to recognize the version (it just installed) without depending solely on some arbitrary value in the windows registry. If winget installs an application it should take note of the version it installed (somewhere) especially if this windows registry entry doesn't exist. (Perhaps winget should make that entry in the Windows Registry if it is otherwise not there after an installation/update). Since all installations and updates are timestamped, winget can assume that the current version of an application is the same version it previously installed as long as the timestamps match (between what winget recalls installing itself and the installation time of the currently installed application). Only when those timestamps do not match should winget consider upgrading. |
Brief description of your issue
I have WinDirStat 1.1.2 installed.
winget upgrade
lists it as upgradable.Steps to reproduce
Expected behavior
Not see an up to date product listed.
Actual behavior
Product is listed with installed 'Version' of 'Unknown'
Environment
The text was updated successfully, but these errors were encountered: