/// <summary> /// Gets a SummaryInfo object that can be used to examine, update, and add /// properties to the summary information stream of a package or transform. /// </summary> /// <param name="packagePath">Path to the package (database) or transform</param> /// <param name="enableWrite">True to reserve resources for writing summary information properties.</param> /// <exception cref="FileNotFoundException">the package does not exist or could not be read</exception> /// <exception cref="InstallerException">the package is an invalid format</exception> /// <remarks><p> /// The SummaryInfo object should be <see cref="InstallerHandle.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. /// </p><p> /// Win32 MSI API: /// <a href="http://msdn.microsoft.com/library/en-us/msi/setup/msigetsummaryinformation.asp">MsiGetSummaryInformation</a> /// </p></remarks> internal SummaryInfo(string packagePath, bool enableWrite) : base((IntPtr)SummaryInfo.OpenSummaryInfo(packagePath, enableWrite), true) { }