Installs an exception package.
void InstallComponentW( _In_ LPCWSTR InfPath, _In_opt_ const GUID *CompGuid, _In_ DWORD Flags, _In_opt_ INT VerMajor, _In_opt_ INT VerMinor, _In_opt_ INT VerBuild, _In_opt_ INT VerQFE, _In_opt_ LPCWSTR Name );
The path to the exception INF to process.
CompGuid [in, optional]
The GUID of the exception component being installed.
The flags used to control installation behaviors. This parameter can be a combination of the following values.
Skips the version check on file replacements.
Back up files that are updated to be used by an uninstall of the component.
Skips backing up files if the Exception component version is the same as an installed component. This flag is used in a reinstallation scenario.
Suppresses all UI.
Forces the DLLCACHE directory to be updated when a system file is updated.
Uses files cached by a Windows service pack install to supersede files backed up.
VerMajor [in, optional]
The major version of the Exception component.
VerMinor [in, optional]
The minor version of the Exception component.
VerBuild [in, optional]
The build version of the Exception component.
VerQFE [in, optional]
The hotfix revision of the Exception component.
Name [in, optional]
The descriptive string of the component shown by the Windows File Protection dialog box if the operating system detects that a Windows File Protection protect file is damaged, tampered with, or corrupted.
This function returns an HRESULT value (S_OK or a failure code). A failure code can be checked against a value of 0x20000100 to determine whether the failure is because a reboot is required.
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.