Partager via


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)

Syntax

public void PopulatePackageFromExe(
    string filePath
)
public:
void PopulatePackageFromExe(
    String^ filePath
)
member PopulatePackageFromExe : 
        filePath:string -> unit
Public Sub PopulatePackageFromExe (
    filePath As String
)

Parameters

Exceptions

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.

See Also

SoftwareDistributionPackage Class
Microsoft.UpdateServices.Administration Namespace

Return to top