scan_inventory

Function scan_inventory 

Source
pub fn scan_inventory(
    package_path: &Path,
    install_root: &Path,
    package_name: &str,
    scope: InstallScope,
) -> Result<MsiInventorySnapshot>
Expand description

Scan an MSI database and reconstruct the inventory snapshot WinBrew stores.

The scanner reads the standard MSI tables, resolves directory and file keys into concrete install paths rooted at install_root, and returns the data in the same snapshot shape used by storage.