Share via


SoftwareDistributionPackage.PopulatePackageFromWindowsInstaller Method (String)

 

Applies To: Windows Server Update Services

Creates a WindowsInstallerItem installable item from the given file.

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

Syntax

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

Parameters

Exceptions

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.

Win32Exception

There was a failure extracting data from the MSI package.

Remarks

The product code will be extracted automatically from the input MSI file. The package type remains the same. (The default: type is Application.)

See Also

SoftwareDistributionPackage Class
Microsoft.UpdateServices.Administration Namespace

Return to top