How to patch ASP.NET 8.0 using SDK when multiple versions are installed on a Windows machine?

This article is applied to MetaDefender Endpoint Security SDK releases on Windows with ASP.NET 8.

Problem

If multiple instances of ASP.NET 8.0 are installed on a Windows machine, OPSWAT SDK will always detect the instance with the highest version. This article will show you a workaround using Windows Update Agent - WUA (Signature: 1103) to apply Microsoft security updates for older instances.

For example, this machine has both ASP.NET 8.0.15 and 8.0.17 x64 installed, but SDK will only returns version 8.0.17.

Using WUA to patch ASP.NET 8

System patching workflow can only update the instance to the version that corresponds to the Microsoft security updates, which may not always be the latest version.

Workflow

The suggested implementation is:

  • Repeatedly run GetLatestInstaller and InstallFromFiles for the Windows Update Agent.
  • Continue until the SDK returns the error code WA_VMOD_ERROR_OUT_OF_RANGE. This error code means there are no missing patches and the system is fully up-to-date.
  • Once you receive the error code WA_VMOD_ERROR_OUT_OF_RANGE, the patching process is complete and no further updates are needed.

Example

Suppose your machine has the following installed:

  • .NET SDK 8.0.115 x64 (Included runtimes: .NET Runtime 8.0.15, ASP.NET Core Runtime 8.0.15, .NET Desktop Runtime 8.0.15)
  • ASP.NET core 8.0.16 x64

To ensure all versions are patched, follow this looped workflow using the SDK with Windows Update Agent (WUA, signature: 1103) by repeatedly invoking GetLatestInstaller and InstallFromFiles:

Loop 1

GetLatestInstaller
InstallFromFiles
Copy

Loop 2

GetLatestInstaller
InstallFromFiles
Copy

Patches were downloaded and installed of ASP.NET 8.0:

  • aspnetcore-runtime-8.0.17-win-x64_71bce543f834826d414598a64cec5cabb3570929.exe
  • dotnet-sdk-8.0.117-win-x64_8010e93d09865912d7bca80da478a7643b705735.exe

Result

All installed ASP.NET 8.0 instances are now patched to the latest security update available via WUA.

If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard