Skip to content

[BUG] Chocolatey update reports success without upgrading when a saved version override targets the installed version #5672

Closed

Description

@CherryDT

Please confirm these before moving forward

  • I have searched for my issue and have not found a work-in-progress/duplicate/resolved issue.
  • I have tested that this issue has not been fixed in the latest (beta or stable) release.
  • I have checked the FAQ section for solutions.
  • This issue is about a bug (if it is not, please use the correct template).

UniGetUI Version

2026.3.3

Windows version, edition, and architecture

Windows 11, build 26300 (10.0.26300.0); edition and architecture not collected

Describe your issue

Ghidra repeatedly appears in Software Updates as 12.0.4 -> 12.2.0. Clicking Update reports "Ghidra was updated successfully", but the installed version remains 12.0.4 and the update reappears after a scan.

The package has a saved installation option selecting Version 12.0.4. UniGetUI uses that old version for the update command even though the update list displays 12.2.0. Chocolatey performs no upgrade and exits successfully; UniGetUI then presents this as a completed update.

Expected: if a saved version override prevents an offered update, UniGetUI should clearly explain the conflict and avoid claiming the package was updated. It could skip the incompatible update or ask the user to change the version selection. A successful command that upgrades zero packages should not be presented as a successful package update.

Steps to reproduce the issue

Observed repeatedly with Chocolatey package ghidra:

  1. Have Ghidra 12.0.4 installed and a saved per-package version selection of 12.0.4.
  2. Scan for updates; UniGetUI offers Ghidra 12.2.0.
  3. Select Ghidra and click Update selection.
  4. UniGetUI runs the upgrade command with --version=12.0.4 --allow-downgrade.
  5. Chocolatey upgrades 0/1 packages and exits with code 0. UniGetUI reports "Ghidra was updated successfully".
  6. Scan again: Ghidra 12.0.4 -> 12.2.0 is offered again.

UniGetUI Log

Relevant operation-history details (sanitized excerpt):
Update options: Version: "12.0.4"; OverridesNextLevelOpts: True
Version: 12.0.4 -> 12.2.0
Arguments: upgrade ghidra -y --no-progress "--version=12.0.4" --allow-downgrade
Displayed result: Ghidra was updated successfully

Package Managers Logs

Chocolatey v2.5.0
Update detection: ghidra|12.0.4|12.2.0|false
Command: choco upgrade ghidra -y --no-progress "--version=12.0.4" --allow-downgrade
Result: ghidra v12.0.4 is the latest version available based on your source(s).
Chocolatey upgraded 0/1 packages.
Exit code: 0

Relevant information

Saved per-package configuration in InstallationOptions/Chocolatey.ghidra.json:

{
  "OverridesNextLevelOpts": true,
  "Version": "12.0.4"
}

The Version property has since been removed as a workaround. An actual upgrade after removing it has not yet been verified.

This report concerns the mismatch between update discovery, saved version selection, and success reporting in UniGetUI. No failure to download or install Ghidra 12.2.0 was observed, because that version was never requested by the generated command.

The origin of the saved version selection is unknown.

Duplicate search and FAQ review

Searched open and closed issues for Ghidra, version overrides, saved Chocolatey options, and successful updates that do not update the package. No exact duplicate of this saved Chocolatey version override scenario was found.

Related reports reviewed:

Reviewed the README FAQ: it does not cover saved Chocolatey version overrides or successful no-op upgrades.

Screenshots and videos

No response

Activity

  1. added
    bug
    on Nov 3, 2026
  2. added
    priority: medium
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugchocolateypriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions