Partager via


SoftwareDistributionPackage.PopulatePackageFromExeWrappedMsi Method (String, String[], String )

 

Applies To: Windows Server Update Services

Creates an MSI executable file from the given path to the executable and the given relative paths to the primary and secondary MSI files.

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

Syntax

public void PopulatePackageFromExeWrappedMsi(
    string exePath,
    string[] relativePathsToPrimaryMsis,
    string[] relativePathsToSecondaryMsis
)
public:
void PopulatePackageFromExeWrappedMsi(
    String^ exePath,
    array<String^>^ relativePathsToPrimaryMsis,
    array<String^>^ relativePathsToSecondaryMsis
)
member PopulatePackageFromExeWrappedMsi : 
        exePath:string *
        relativePathsToPrimaryMsis:string[] *
        relativePathsToSecondaryMsis:string[] -> unit
Public Sub PopulatePackageFromExeWrappedMsi (
    exePath As String,
    relativePathsToPrimaryMsis As String(),
    relativePathsToSecondaryMsis As String()
)

Parameters

  • exePath
    Type: System.String

    The exe that wraps the MSI package.

  • relativePathsToPrimaryMsis
    Type: System.String[]

    The wrapped primary MSI files that construct detection rules and repair paths.

  • relativePathsToSecondaryMsis
    Type: System.String[]

    The wrapped secondary MSI files used to register the repair paths.

Exceptions

Exception

Condition

InvalidOperationException

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

ArgumentException

exePath is not an executable, or relativePathsToPrimaryMsis is empty.

ArgumentNullException

exePath, relativePathsToPrimaryMsis, or relativePathsToPrimaryMsis is null.

FileNotFoundException

The files in one or more of the input parameters could not be found.

Win32Exception

One or more of the MSI files is not valid.

See Also

SoftwareDistributionPackage Class
Microsoft.UpdateServices.Administration Namespace

Return to top