SoftwareDistributionPackage.PopulatePackageFromWindowsInstaller Method

Creates a WindowsInstallerItem installable item from the given file.


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

public void PopulatePackageFromWindowsInstaller (
	string filePath
)
public void PopulatePackageFromWindowsInstaller (
	String filePath
)
public function PopulatePackageFromWindowsInstaller (
	filePath : String
)

Parameters

filePath

The path to the

Exception typeCondition
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.

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
Show:
© 2014 Microsoft