Skip to main content

InapplicablePatchHandler Delegate

Receives an exception from «see M:WixToolset.Dtf.WindowsInstaller.Installer.DetermineApplicablePatches(System.String,System.String[],WixToolset.Dtf.WindowsInstaller.InapplicablePatchHandler,System.String,WixToolset.Dtf.WindowsInstaller.UserContexts)» indicating the reason a particular patch is not applicable to a product.

Invoke(patch, exception) Method

Receives an exception from «see M:WixToolset.Dtf.WindowsInstaller.Installer.DetermineApplicablePatches(System.String,System.String[],WixToolset.Dtf.WindowsInstaller.InapplicablePatchHandler,System.String,WixToolset.Dtf.WindowsInstaller.UserContexts)» indicating the reason a particular patch is not applicable to a product.

Declaration

public void Invoke(
string patch,
Exception exception
)

Parameters

ParameterTypeDescription
patchstringMSP file path, XML file path, or XML blob that was passed to
exceptionExceptionexception indicating the reason the patch is not applicable

Remarks

If exception is an «see T:WixToolset.Dtf.WindowsInstaller.InstallerException» or subclass, then its «see P:WixToolset.Dtf.WindowsInstaller.InstallerException.ErrorCode» and «see P:WixToolset.Dtf.WindowsInstaller.InstallerException.Message» properties will indicate a more specific reason the patch was not applicable. The exception could also be a FileNotFoundException if the patch string was a file path.

Remarks

If exception is an «see T:WixToolset.Dtf.WindowsInstaller.InstallerException» or subclass, then its «see P:WixToolset.Dtf.WindowsInstaller.InstallerException.ErrorCode» and «see P:WixToolset.Dtf.WindowsInstaller.InstallerException.Message» properties will indicate a more specific reason the patch was not applicable. The exception could also be a FileNotFoundException if the patch string was a file path.

WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8