Windows Dev Center

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



The path to the

Exception typeCondition

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


filePath is null.


filePath could not be found.


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
© 2015 Microsoft