Open tookender opened 2 months ago
I don't think it should be detecting this as Steam already updates those apps, so there is no point. I understand winget is meant to detect already installed applications, but I don't think it makes sense to detect Steam apps.
The package manager operates by downloading a compressed copy of the manifests in its repo, then matching this data against data in the Registry, and outputting matches. This package might have 1 installer that is installed through various package managers and maybe other means. Were this the case, then the Registry would receive the same data regardless of install source, and the package manager should offer the upgrade.
Does upgrading through this package manager cause issues for other package managers including Steam? (Consider using a VM or Sandbox to test instead of modifying your system.)
One possible solution could be using the --pin
feature, to prevent this package manager from offering upgrades for this package in the future.
Looking at the ARP on my machine, it seems that apps installed by Steam all have a product code like "Steam App [numerical ID]". So we could potentially detect that an app is managed by Steam and ignore them for updates. I think it would be worth doing since we probably can't do anything useful with those apps (except maybe list).
I think florelis solution would be perfect. It makes no sense to just list them as they are pretty much useless since you can't update them or anything.
In the meantime, maybe "winget pin" feature could be used as a workaround to block updating ShareX in upgrade all scenario.
Brief description of your issue
Running
winget upgrade --all --include-unknown
lists ShareX.ShareX as an installed app even though it is installed via Steam, resulting in an error.> winget upgrade --all --include-unknown
Steps to reproduce
winget upgrade --all --include-unknown
, watch it send an error about ShareXExpected behavior
I expected it to not be detected by winget as it is installed by Steam.
Actual behavior
Winget is detecting ShareX as an application even though it is installed from Steam and giving an error when using the command.
Environment