Class MsiExtractor
- Namespace
- ZeroInstall.Archives.Extractors
- Assembly
- ZeroInstall.Archives.dll
Extracts Windows Installer packages (.msi) with one or more embedded CAB archives.
public class MsiExtractor : ArchiveExtractor, IArchiveExtractor
- Inheritance
-
MsiExtractor
- Implements
- Inherited Members
Remarks
This class is immutable and thread-safe.
Constructors
MsiExtractor(ITaskHandler)
Extracts Windows Installer packages (.msi) with one or more embedded CAB archives.
public MsiExtractor(ITaskHandler handler)
Parameters
handler
ITaskHandlerA callback object used when the user needs to be informed about IO tasks.
Remarks
This class is immutable and thread-safe.
Exceptions
- PlatformNotSupportedException
The current platform is not Windows.
Methods
Extract(IBuilder, Stream, string?)
Extracts an archive.
public override void Extract(IBuilder builder, Stream stream, string? subDir = null)
Parameters
builder
IBuilderThe builder receiving the extracted files.
stream
StreamThe archive data to be extracted.
subDir
stringThe Unix-style path of the subdirectory in the archive to extract;
null
to extract entire archive.
Exceptions
- OperationCanceledException
The operation was canceled.
- IOException
A problem occurred while extracting the archive.