Page 1 of 1

NEWS for Version 1.18 (2020-02-02)

PostPosted: 02.02.2020, 16:32
by hbuhrmester
NEWS for Version 1.18

Release date: 2020-02-02
Intended compatibility: WSUS Offline Update 11.8.3

Bug fixes

Superseded cumulative updates for Windows 10 were not deleted

The problem were changed paths on the Microsoft servers and how they affected the determination of superseded updates.

For example, the cumulative updates for Windows 10, version 1803 from November 2019 are:


The last step in the determination of superseded updates is the connection of File Ids and Locations (URLs). These fields are extracted from the file package.xml with two XSLT transformation files, either ExtractUpdateCabExeIdsAndLocations.xsl or the derived extract-update-cab-exe-ids-and-locations.xsl.

Both XSLT files apply a series of tests, including:

Code: Select all
contains(@Url, '/update/software/secu/')


This is the usual path for security updates on Microsoft servers, but, as shown above, Windows 10 updates now use a different path. This means, that the URLs are missing in the extracted file UpdateCabExeIdsAndLocations.txt and, as a consequence, in the ExcludeList-superseded.txt.

The patch for Windows 10 updates features a new XSLT transformation file extract-file-ids-and-locations.xsl, which is based on extract-update-cab-exe-ids-and-locations.xsl, but does not apply any restrictions on the results.

In the file download-updates-tasks/50-superseded-updates.bash, the following changes were made:

  1. The file extract-update-cab-exe-ids-and-locations.xsl was replaced with extract-file-ids-and-locations.xsl.

    The script searches two places for this file: the private directory ./xslt of the Linux scripts and the directory wsusoffline/xslt, where other XSLT files can be found. (The Linux scripts, as they are distributed today, cannot place files into the latter directory, though.)

  2. The file UpdateCabExeIdsAndLocations.txt was replaced with file-ids-and-locations.txt.

    The new file is not restricted to .cab and .exe files anymore.

    Furthermore, the file file-ids-and-locations.txt needs to be distinguished from UpdateCabExeIdsAndLocations.txt, which is still used for the determination of dynamic Office updates. (I assume, that the determination of Office updates was the reason, why these restrictions were included in the first place.)

  3. The files ExcludeListLocations-superseded-all.txt and ExcludeListLocations-superseded-all-revised.txt were renamed to ExcludeList-superseded-all.txt and ExcludeList-superseded-all-revised.txt.

    This is not related to the patch for Windows 10 updates, but a simple refactoring to shorten the filenames.

The patch for Windows 10 updates was previously discussed in the forum topic:


Notes

If you manually copy this version of the Linux scripts over an existing installation, you should also delete these files (if existing):

Code: Select all
../exclude/ExcludeList-Linux-superseded.txt
../exclude/ExcludeList-Linux-superseded-seconly.txt
../exclude/ExcludeList-Linux-superseded-seconly-revised.txt


An automatic update of WSUS Offline Update or the Linux download scripts will delete these files automatically.


Downloads

The download links for this version are:


Link for the online check at VirusTotal. Note, that the URL includes the SHA-256 hash of the archive:


The hashes for the archive sh-1.18.tgz are:
Code: Select all
MD5:      3dfa254789dd476789a4bed6783bd7dd
SHA-256:  17a51fe4e141ddcea82634c35cf9485fc7092119a10cfe2fd1820a987a559ae2



Further Reading

The first three posts in the original topic A complete rewrite of the Linux scripts are still being updated, to point to the latest version: