IUpdateInstaller::put_IsForced method (wuapi.h)
Gets or sets a Boolean value that indicates whether to forcibly install or uninstall an update.
This property is read/write.
Syntax
HRESULT put_IsForced(
VARIANT_BOOL value
);
Parameters
value
Return value
None
Remarks
A forced installation is an installation in which an update is installed even if the metadata indicates that the update is already installed. A forced uninstallation is an uninstallation in which an update is removed even if the metadata indicates that the update is not installed.
Before you use IsForced to force an installation, determine whether the update is installed and available. If an update is not installed, a forced installation fails. For example, an update can be downloaded, and then its corresponding files removed from the cache after the expiration limit. In this case, if the files are not installed, a forced installation of the update fails.
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 |