rgl / packer-plugin-windows-update

Packer plugin for installing Windows updates
Mozilla Public License 2.0
295 stars 71 forks source link

Update Download Size Wrong #59

Open FloGatt opened 4 years ago

FloGatt commented 4 years ago

The update download size is not showing correctly:

Searching for Windows updates... Found Windows update (2020-02-11; 30.02 MB): Windows Malicious Software Removal Tool x64 - February 2020 (KB890830) Found Windows update (2020-02-11; 68.19 MB): 2020-02 Cumulative Update for .NET Framework 3.5 and 4.8 for Windows 10 Version 1909 for x64 (KB4534132) Found Windows update (2020-02-11; 20.75 MB): 2020-02 Security Update for Adobe Flash Player for Windows 10 Version 1909 for x64-based Systems (KB4537759) Found Windows update (2020-02-12; 95.73 MB): Security Intelligence Update for Windows Defender Antivirus - KB2267602 (Version 1.309.810.0) Found Windows update (2020-02-11; 86512.19 MB): 2020-02 Cumulative Update for Windows 10 Version 1909 for x64-based Systems (KB4532693) Downloading Windows updates (5 updates; 86726.87 MB)...

I am not exactly sure why the cumulative update is showing as 86 GB...

rgl commented 4 years ago

Its not wrong per-se, its showing you the maximum download size of that update as reported by the windows update api.

If you want another information you should submit a PR . For example, you can submit a PR that shows the download size as a range (e.g. [1234.5, 86726.87] MB).