ryan-jan / MSCatalog

PowerShell module for searching and downloading offline updates from https://www.catalog.update.microsoft.com
MIT License
58 stars 16 forks source link

Save-MSCatalogUpdate and updates with multiple files #12

Closed xxbiohazrdxx closed 2 years ago

xxbiohazrdxx commented 2 years ago

Currently, there is no way to automate Save-MSCatalogUpdate (As far as I can tell, at least) if you attempt to save an update with multiple files. It will always prompt you so select the file you want to download or enter A for all.

I can think of two ways to approach this, continue with the existing behavior unless a switch has been specified, say -AcceptMultiFileUpdates, or just have the default behavior be to download all update files.

In my opinion, if an update has multiple files, you need all of the files. The update isn't complete without them. So I would think option 2 would be better, but that's just my opinion.