UninstallComponent function
Removes an exception package.
Syntax
void UninstallComponent(
_In_opt_ const GUID *CompGuid,
_In_ DWORD Flags,
_In_opt_ INT VerMajor,
_In_opt_ INT VerMinor,
_In_opt_ INT VerBuild,
_In_opt_ INT VerQFE
);
Parameters
-
CompGuid [in, optional]
-
The GUID of the exception component being uninstalled.
-
Flags [in]
-
The flags used to control installation behaviors. This parameter can be a combination of the following values.
Value Meaning - COMP_FLAGS_NOUI
Suppresses all UI. - COMP_FLAGS_UPDATE_DLLCACHE
Forces the DLLCACHE directory to be updated when a system file is updated. - COMP_FLAGS_USE_SVCPACK_CACHE
Uses files cached by a Windows service pack install to supersede files backed up. -
VerMajor [in, optional]
-
The major version of the Exception component to be uninstalled.
-
VerMinor [in, optional]
-
The minor version of the Exception component to be uninstalled.
-
VerBuild [in, optional]
-
The build version of the Exception component to be uninstalled.
-
VerQFE [in, optional]
-
The hotfix revision of the Exception component to be uninstalled.
Return value
This function does not return a value.
Remarks
Exception packages are Windows system files that are released outside of a full package Windows release and that update operating-system files. Exception packages are authored only by operating-system teams that have been granted authorization to update Windows system files.
To install and uninstall files that are not protected by Windows File Protection, use the functions documented in General Setup Functions. To install device drivers, venders should use functions documented in Device Installation Functions and PnP Configuration Manager Functions.
This function has no associated import library or header file; you must call it by using the LoadLibrary and GetProcAddress functions.
Requirements
Requirement | Value |
---|---|
DLL |
|
See also