microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.08k stars 1.44k forks source link

(Feature Request)Deep Integration between Winget, Microsoft Store and Windows Update #711

Open dnet890 opened 3 years ago

dnet890 commented 3 years ago

I know winget update command is live and it is still experimental and also integration with Microsoft Store is still ongoing. So, is it possible in the future if we can implement a feature to update Winget installed apps, Microsoft Store apps and launch Windows Update simultaneously in a single command?

denelon commented 3 years ago

We are still looking at the best way to handle automatic updates with the package manager. I'll keep this feature to consider this kind of integration between the package manager and the store.

Karl-WE commented 3 years ago

@dtantono @denelon

Basically, the updating via Store is a good idea with App Installer, although there are some issues with the Store itself not related to App Installer

Example: Store app does not update apps in the background on many systems, especially those that aren't online for a long period of time like laptops or low bandwith or unreliable internet connections.

Result: Apps are piled up listed as "pending download" in the Store but do not download.

I regularly see the issue that store-based Apps are outdated.

Workaround: Unless the user launches the Microsoft Store App > clicks "Get updates", all updates pending are processed. I have flagged this with the Windows Insider team and Store team but no success. This issue is going around since 1803 at least.

tl:dr Updating via Store is not reliable at the moment for users that do not use their devices often or have low bandwidth connections.

Preferring Windows Update would also enable the use on Windows Server see #702, but this would need to care to check and upgrade prerequisites to Winget.

vedantmgoyal9 commented 2 years ago

cc @denelon

denelon commented 2 years ago

@vedantmgoyal2009 this feature was created earlier than the other one. I'm going to keep this one open to look at the possibility of enabling Windows Update. If we get the version for the "msstore" source (not just the Win32 packages), winget upgrade --all would trigger updates for Microsoft Store packages.

RokeJulianLockhart commented 1 year ago

@denelon, is what you describe—the absence of versions from the msstore source—tracked anywhere? It's a really annoying problem for me too for exactly the reason that you state.

denelon commented 1 year ago

Yes, and the work is in progress for getting version for packages in the "msstore" source. If you run winget show for one of the new Win32 Apps in the store you will see the version present. The Microsoft Store team is working on the remaining plumbing. This is a very large body of engineering work, and I don't have an ETA.

IngwiePhoenix commented 1 year ago

Came here while googling for integrating Winget into Windows Update.

Any progress on that part in particular? Thanks!

denelon commented 1 year ago

@IngwiePhoenix,

Not yet. That's a fairly large undertaking with several other compliance concerns. We would likely split that out into its own issue before tackling it in earnest.

RokeJulianLockhart commented 1 year ago

@denelon and @IngwiePhoenix, if you happen to create a separate issue, please link it here.

ghost commented 1 year ago

@rokejulianlockhart Added #3188 to split off the windows update integration.