rgl / packer-plugin-windows-update

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

Add condition to check for duplicate queued updates #139

Closed stuartp44 closed 8 months ago

stuartp44 commented 8 months ago

This commit helps the occurence of duplicate Windows Update's getting queued and causing Windows Update to refuse to do windows update work. We add logic to find and skip duplicate Windows Updates.

Orginal PR This PR detects when an update is attempted to be installed which equal the same update by its title. We do this by comparing what is currently in the install object, using the update title and skip the update it if we find it already in the object. This stops the HRESULT: 0x80240013 which is, as far as I know, when a duplicate update is attempted to be installed at the same time.

Resolves https://github.com/rgl/packer-plugin-windows-update/issues/131