Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

ServicePackEx class function

Project: System Information Unit.

Unit: PJSysInfo.

Class: TPJOSInfo

Applies to: ~>5.2

class function ServicePackEx: string;

Description

Returns a description of any installed operating service pack and/or other similar updates.

An empty string is returned if there is no service pack or update.

If both a service pack and update are detected then the service pack description comes first, followed by a comma then the update description.

If a service pack is present it’s description is identical to that returned from the ServicePack method.

On operating systems where CanSpoof returns False this method will return the service pack or update details of the installed operating system, regardless of any compatibility mode.

Remarks

Windows may add significant OS updates that bump the build number but do not declare themselves as service packs.

For example the Windows 10 TH2 update (“Version 1511”) is to all intents and purposes a service pack. However it reports the same product version number and service pack version number as the 1st release of Windows 10. Only the build number is changed.

This method is used to report these updates in addition to service packs, while the ServicePack method only reports “official” service packs.