DetermineApplicablePatches Method (productPackage, patches, errorHandler)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation DetermineApplicablePatches Method (productPackage, patches, errorHandler)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerInstallerDetermineApplicablePatches(String, array<String>[]()[][], InapplicablePatchHandler)
Determines which patches apply to a specified product MSI and in what sequence.
Declaration Syntax
C# Visual Basic Visual C++
public static IList<string> DetermineApplicablePatches(
	string productPackage,
	string[] patches,
	InapplicablePatchHandler errorHandler
)
Public Shared Function DetermineApplicablePatches ( 
	productPackage As String,
	patches As String(),
	errorHandler As InapplicablePatchHandler
) As IList(Of String)
public:
static IList<String^>^ DetermineApplicablePatches(
	String^ productPackage, 
	array<String^>^ patches, 
	InapplicablePatchHandler^ errorHandler
)
Parameters
productPackage (String)
Full path to an MSI file that is the target product for the set of patches.
patches (array<String>[]()[][])
An array of strings specifying the patches to be checked. Each item may be the path to an MSP file, the path an XML file, or just an XML blob.
errorHandler (InapplicablePatchHandler)
Callback to be invoked for each inapplicable patch, reporting the reason the patch is not applicable. This value may be left null if that information is not desired.
Return Value
IList<(Of <(<'String>)>)>
An array of selected patch strings from patches, indicating the set of applicable patches. The items are re-ordered to be in the best sequence.
Remarks

If an item in patches is a file path but does not end in .MSP or .XML, it is assumed to be an MSP file.

As this overload uses InstallContext.None, it does not consider the current state of the system.

Win32 MSI API: MsiDetermineApplicablePatches

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)