Deployment Tools Foundation
DetermineApplicablePatches Method (productPackage, patches, errorHandler)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Installer ► DetermineApplicablePatches(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
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