Included are some useful helper classes for working with MSI and MSP packages:
InstallPackage - extends the Database class to provide powerful package-based operations such as:
InstallPathMap, InstallPath - represent the directory structure of an installation package, including file, component, and directory source and target install paths. Accessible by file, component, or directory keys; searchable by filename.
PatchPackage - allows convenient access to patch properties, and analysis and extraction of transforms
These classes are in the Microsoft.WindowsInstaller.Package.dll assembly.
See also:
The WiFile sample tool demonstrates some usage of the InstallPackage class.