SoftwareDistributionPackage.PopulatePackageFromExe Method (String)

 

Applies To: Windows Server Update Services

Creates a CommandLineItem installable item from the given executable file name.

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

public void PopulatePackageFromExe(
	string filePath
)

Parameters

filePath
Type: System.String

The path of the executable file.

Exception Condition
InvalidOperationException

The package is not empty, or a Populate() method has previously been called on this package.

ArgumentException

filePath is null or empty.

Return to top

Community Additions

ADD
Show: