chocolatey / chocolatey/choco

Chocolatey thinks I have an older version of something than I actually have

Open
#3,826 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### Checklist

- [x] I confirm there are no unresolved issues reported on the [Chocolatey Status page](https://status.chocolatey.org).
- [x] I have verified this is the correct repository for opening this issue.
- [x] I have verified no other issues exist related to my problem.
- [x] I have verified this is not an issue for a specific package.
- [x] I have verified this issue is not security related.
- [x] I confirm I am using **official**, and **not** unofficial, or modified, Chocolatey products.

### What You Are Seeing?

Chocolatey thinks I have `samsung-magician` version 8.2.0.880 installed, but it is nowhere to be found; the actual version installed is the current one (9.0.0.910).

However, I do see that chocolatey has a folder at `C:\ProgramData\chocolatey\.chocolatey\samsung-magician.8.2.0.880`. It may be pertinent that Samsung Magician upgraded itself apart from any involvement by chocolatey.

### What is Expected?

That chocolatey sees the actual installed version number (and therefore doesn't note this package as outdated).

### How Did You Get This To Happen?

1. Install `samsung-magician`
2. Wait till Samsung updates their software
3. Allow it to update itself
4. Check chococlatey for the status of the package

### System Details

* Operating System: 10.0.22631.0
* Windows PowerShell version: 7.5.4
* Chocolatey CLI Version: 2.6.0
* Chocolatey Licensed Extension version: Chocolatey v2.6.0
* Chocolatey License type: free
* Terminal/Emulator: Windows PowerShell

### Installed Packages

```bash
adb 36.0.0
autohotkey.portable 2.0.19
babelmap 16.0.0.6
babelpad 16.0.0.6
chocolatey 2.6.0
chocolatey-dotnetfx.extension 1.0.1
dns-benchmark 1.3.6668.20190425
dotnetfx 4.8.0.20220524
iperf3 3.16.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
microsoft-ui-xaml-2-7 2.7.3
samsung-magician 8.2.0.880
vcredist2010 10.0.40219.32503
virtualdub2 0.0.44282
```

### Output Log

```bash
https://gist.github.com/Atario/63e3fe921ca8243133225a289b4b126e
```

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction steps and the linked output log, then identify the Chocolatey CLI entry point responsible for reporting installed package versions. Reproduce the Samsung Magician self-update scenario and verify that the reported version matches the actually installed version without treating the old package folder as current.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.