Deployment Tools Foundation
GetStream Method (field, filePath)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Record ► GetStream(Int32, String)
Reads a record stream field into a file.
Declaration Syntax
Remarks
This method is capable of directly extracting substorages. To do so, first select both the `Name` and `Data` column of the `_Storages` table, then get the stream of the `Data` field. However, substorages may only be extracted from a database that is open in read-only mode.
Win32 MSI API: MsiRecordReadStream
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The field is less than 0 or greater than the
number of fields in the Record. |
NotSupportedException | Attempt to extract a storage from a database open
in read-write mode, or from a database without an associated file path |