DrewNaylor / guinget

Unofficial GUI for Microsoft's Windows Package Manager (winget). Kinda like Synaptic, but for Windows. Not associated with either Microsoft or the Synaptic project, and Microsoft does not endorse this software.
Apache License 2.0
135 stars 3 forks source link

Add a column with the source name and pass it to winget when installing. #66

Open DrewNaylor opened 3 years ago

DrewNaylor commented 3 years ago

This will help when packages like Windows Terminal say there are multiple options from multiple sources even when specifying a version number. For now, it can just be a thing in the Options window under Apply Changes as an editable dropdown with sources and a checkbox that says to specify a default install source when passing it to winget. When adding this to the Apply changes window, it can just have a linklabel to go to the tab to change it.

When passing this info to winget, something like this would work: winget install --id "Microsoft.WindowsTerminal" -v 1.4.3243.0 -e -s "winget"

The Source column will need to be added to the Apply changes window in addition to the package list so it can be sent to winget.

Be sure to add a note that says to make sure that the version you want to install is available in the source, or else it won't install. May be a good idea to have a thing that says, Default to winget community source, alongside a dropdown (or maybe just do winget (Default) as an option in the dropdown).

Most of this was crossed out because I realized it could be done by just automatically passing the source name when installing.

DrewNaylor commented 3 years ago

Instead of this, I could just have a column with the source name, and pass that as a parameter to winget. That would help a lot when adding Store source support.

DrewNaylor commented 3 years ago

The Source column could be hidden until support for loading the Store source is added, just like what winget itself does.

DrewNaylor commented 3 years ago

Maybe I'll delay this until a future version, since it's not that urgent right now.