This post is about retrieving the MSI file properties from PowerShell. There are some tools if you need to read the metadata from the msi database.
- Orca
- InstEd
The script will just loop through all the available properties with value and return the result in PSCustomObject. You can use this script to read the ProductCode of an MSI file before the installation.