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

[BUG] Install Technology Differs Misclassification #2950

Closed
4 tasks done
mrixner opened this issue Nov 8, 2024 · 1 comment · Fixed by #2952
Closed
4 tasks done

[BUG] Install Technology Differs Misclassification #2950

mrixner opened this issue Nov 8, 2024 · 1 comment · Fixed by #2952
Assignees
Labels
bug Something isn't working ready-to-go

Comments

@mrixner
Copy link
Contributor

mrixner commented Nov 8, 2024

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

3.1.3

Windows version, edition, and architecture

Windows 11 Home 10.022631 Build 22631 x64

Describe your issue

When WinGet refuses to install an update because "A newer version was found. but the install technology is different the current version installed", UniGetUI reports this as successful. The code explicitly checks for this, likely because WinGet's docs claim it simply means "no applicable update found", but this seems like it should be an error, not a success, as a package is unable to be updated as requested due to something being wrong.

Steps to reproduce the issue

I'm not totally sure how to trigger an "install technology is different from the current version installed" error with WinGet, but I don't think it's pertinent. If you do have a WinGet package triggering this issue, you can just try to update it to see the issue.

UniGetUI Log

[Trimmed except for applicable line]

[11/8/2024 4:16:55 PM] Loaded operation parameters for package id=Microsoft.Edge on manager Winget and operation Update: update --id "Microsoft.Edge" --exact --source winget --accept-source-agreements --disable-interactivity --silent  --include-unknown --accept-package-agreements --force

Package Managers Logs

**NOTE: For some reason triggering the issue in question does not change the Packager Manager log**

Manager WinGet with version:
System WinGet CLI Version: v1.9.25180
Using Native WinGet helper (COM Api)

——————————————————————————————————————————


Logged native task on manager Winget. Task type is ListSources
Process start time: 11/8/2024 3:25:01 PM
Process end time:   11/8/2024 3:25:01 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\mjrix\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 11/8/2024 3:25:04 PM
Process end time:   11/8/2024 3:25:12 PM

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 11/8/2024 3:25:05 PM
Process end time:   11/8/2024 3:25:05 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 11/8/2024 3:25:10 PM
Process end time:   11/8/2024 3:25:15 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 11/8/2024 3:25:12 PM
Process end time:   11/8/2024 3:25:15 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 11/8/2024 3:25:30 PM
Process end time:   11/8/2024 3:25:32 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\mjrix\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 11/8/2024 3:25:47 PM
Process end time:   11/8/2024 3:25:48 PM

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 11/8/2024 3:25:48 PM
Process end time:   11/8/2024 3:25:51 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\mjrix\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 11/8/2024 3:26:03 PM
Process end time:   11/8/2024 3:26:04 PM

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 11/8/2024 3:26:04 PM
Process end time:   11/8/2024 3:26:07 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 11/8/2024 4:14:48 PM
Process end time:   11/8/2024 4:14:53 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 11/8/2024 4:16:36 PM
Process end time:   11/8/2024 4:16:40 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Logged subprocess-based task on manager Winget. Task type is RefreshIndexes
Subprocess executable: "C:\Users\mjrix\AppData\Local\Microsoft\WindowsApps\winget.exe"
Command-line arguments: " source update --disable-interactivity"
Process start time: 11/8/2024 4:16:47 PM
Process end time:   11/8/2024 4:16:48 PM

-- Process STDOUT
 ...

Return code: SUCCESS (0)

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 11/8/2024 4:16:48 PM
Process end time:   11/8/2024 4:16:52 PM

-- Task information
 ...

The task reported success

——————————————————————————————————————————

Relevant information

Yes, this does occur when running the WinGet CLI, although this issue pertains to how UniGetUI handles that.

In the WinGetOperationProvider.cs file, here is the relevant line of code. The return value in question is -1978335189, or hex code 0x8A15002B (according to the WinGet docs, APPINSTALLER_CLI_ERROR_UPDATE_NOT_APPLICABLE / No applicable update found).

Screenshots and videos

Screenshot 2024-11-08 152631

@mrixner mrixner added the bug Something isn't working label Nov 8, 2024
@marticliment
Copy link
Owner

I agree. I misunderstood what the code meant.

@marticliment marticliment added this to the Bugs milestone Nov 9, 2024
@marticliment marticliment removed this from the Bugs milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-to-go
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants