SummaryInfo Constructor (packagePath, enableWrite)

DTF API

Copy image CopyHover image
Deployment Tools Foundation SummaryInfo Constructor (packagePath, enableWrite)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSummaryInfoSummaryInfo(String, Boolean)
Gets a SummaryInfo object that can be used to examine, update, and add properties to the summary information stream of a package or transform.
Declaration Syntax
C# Visual Basic Visual C++ F#
public SummaryInfo(
	string packagePath,
	bool enableWrite
)
Public Sub New ( 
	packagePath As String,
	enableWrite As Boolean
)
public:
SummaryInfo(
	String^ packagePath, 
	bool enableWrite
)
new : 
        packagePath : string * 
        enableWrite : bool -> SummaryInfo
Parameters
packagePath (String)
Path to the package (database) or transform
enableWrite (Boolean)
True to reserve resources for writing summary information properties.
Remarks

The SummaryInfo object should be Close()()()()d after use. It is best that the handle be closed manually as soon as it is no longer needed, as leaving lots of unused handles open can degrade performance.

Win32 MSI API: MsiGetSummaryInformation

Exceptions
Exception Condition
FileNotFoundException the package does not exist or could not be read
InstallerException the package is an invalid format

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)