Partager via


IUpdateInstaller::IsBusy property

Gets a Boolean value that indicates whether an installation or uninstallation is in progress on a computer at a specific time.

This property is read-only.

Syntax

HRESULT get_IsBusy(
  [out] VARIANT_BOOL *retval
);

Property value

VARIANT_TRUE if an installation or uninstallation is in progress on the computer.

VARIANT_FALSE if an installation or uninstallation is not in progress on the computer.

Note  A new installation or uninstallation will only be processed when no other installation or uninstallation is in progress.

 

Error codes

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Remarks

A new installation or uninstallation is processed only when no other installation or uninstallation is in progress. While an installation or uninstallation is in progress, a new installation or uninstallation immediately fails with the WU_E_OPERATIONINPROGRESS error. The IsBusy property does not secure an opportunity for the caller to begin a new installation or uninstallation. If the IsBusy property or a recent installation or uninstallation failure indicates that another installation or uninstallation is already in progress, the caller should attempt the installation or uninstallation later.

Requirements

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]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IUpdateInstaller