SoftwareDistributionPackage.PopulatePackageFromWindowsInstallerPatch Method (String)

 

Applies To: Windows Server Update Services

Creates a WindowsInstallerPatchItem from the given MSP file.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

public void PopulatePackageFromWindowsInstallerPatch(
	string filePath
)

Parameters

filePath
Type: System.String

The path of the MSP file.

Exception Condition
InvalidOperationException

This package is not empty, or else a Populate() method has been called previously.

ArgumentNullException

filePath is null.

FileNotFoundException

filePath could not be found.

InvalidDataException

filePath does not contain a valid MSP file.

Win32Exception

There was a failure extracting data from the MSP package.

Return to top

Community Additions

ADD
Show: