IUpdate2::get_IsPresent method (wuapi.h)

Gets a Boolean value that indicates whether an update is present on a computer.

This property is read-only.

Syntax

HRESULT get_IsPresent(
  VARIANT_BOOL *retval
);

Parameters

retval

Return value

None

Remarks

An update is considered present if it is installed for one or more products. For example, if an update applies to both Microsoft Office Word and to Microsoft Office Excel, the IsPresent property returns VARIANT_TRUE if the update is installed for one or both of the products.

If an update applies to only one product, the IsPresent and IsInstalled properties are equivalent. An update is considered installed if the update is installed for all the products to which it applies.

If IsPresent returns VARIANT_TRUE and IsInstalled returns VARIANT_FALSE, the update can be uninstalled for the product that installed it.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional with SP3 [desktop apps only]
Minimum supported server Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]
Target Platform Windows
Header wuapi.h
Library Wuguid.lib
DLL Wuapi.dll

See also

IUpdate2