Read-only wrapper for libmsi from msitools: https://wiki.gnome.org/msitools
IMPORTANT: required libgsf-1 version is 1.14.27, download this package (and libgsf-1-common) manually from Ubuntu repo and install using dpkg -i if you have previous version.
apt-get install bison python-dev build-essential uuid-dev libgsf-1-dev automake autoconf gnu-standards autoconf-doc libtool gettext autoconf-archive libffi-dev
wget http://ftp.de.debian.org/debian/pool/main/g/gcab/gcab_0.4.orig.tar.xz && tar xvf gcab_0.4.orig.tar.xz && cd gcab-0.4
./configure --prefix=/usr && make && make install
cd ..
git clone https://github.com/mindcollapse/libmsi-stripped.git && cd libmsi-stripped
autoreconf -fi && ./configure --prefix /usr && make && make install
pip install cffi
pip install https://github.com/mindcollapse/libmsi-python/archive/master.zip
>>> from msi import MSI
>>> db = MSI('7z938-x64.msi')
>>> db.summary_info
{'LIBMSI_PROPERTY_TITLE': 'Installation Database', 'LIBMSI_PROPERTY_DICTIONARY': None, 'LIBMSI_PROPERTY_LASTAUTHOR': None, 'LIBMSI_PROPERTY_COMMENTS': '7-Zip (x64 edition) Package', 'LIBMSI_PROPERTY_APPNAME': 'Windows Installer XML v2.0.3719.0 (candle/light)', 'LIBMSI_PROPERTY_LASTSAVED_TM': 130647995050000000, 'LIBMSI_PROPERTY_EDITTIME': None, 'LIBMSI_PROPERTY_TEMPLATE': 'x64;1033', 'LIBMSI_PROPERTY_UUID': '{23170F69-40C1-2702-0938-000002000000}', 'LIBMSI_PROPERTY_LASTPRINTED': None, 'LIBMSI_PROPERTY_KEYWORDS': 'Installer', 'LIBMSI_PROPERTY_VERSION': 200, 'LIBMSI_PROPERTY_CREATED_TM': 130647995050000000, 'LIBMSI_PROPERTY_THUMBNAIL': None, 'LIBMSI_PROPERTY_SUBJECT': '7-Zip (x64 edition) Package', 'LIBMSI_PROPERTY_RESTRICT': None, 'LIBMSI_PROPERTY_CODEPAGE': 1252, 'LIBMSI_PROPERTY_SOURCE': 2, 'LIBMSI_PROPERTY_AUTHOR': 'Igor Pavlov', 'LIBMSI_PROPERTY_SECURITY': 2}
>>> query = db.query('SELECT * FROM Property')
>>> query.results
[['Property', 'Value'], ['s72', 'l0'], ['UpgradeCode', '{23170F69-40C1-2702-0000-000004000000}'], ['Manufacturer', 'Igor Pavlov'], ['ProductCode', '{23170F69-40C1-2702-0938-000001000000}'], ['ProductLanguage', '1033'], ['ProductName', '7-Zip 9.38 (x64 edition)'], ['ProductVersion', '9.38.00.0'], ['ALLUSERS', '2'], ['ARPURLINFOABOUT', 'http://www.7-zip.org/'], ['ARPHELPLINK', 'http://www.7-zip.org/support.html'], ['ARPURLUPDATEINFO', 'http://www.7-zip.org/download.html'], ['DefaultUIFont', 'WixUI_Font_Normal'], ['WixUI_Mode', 'FeatureTree'], ['WixUI_WelcomeDlg_Next', 'LicenseAgreementDlg'], ['WixUI_LicenseAgreementDlg_Back', 'WelcomeDlg'], ['WixUI_LicenseAgreementDlg_Next', 'CustomizeDlg'], ['WixUI_CustomizeDlg_BackChange', 'MaintenanceTypeDlg'], ['WixUI_CustomizeDlg_BackCustom', 'SetupTypeDlg'], ['WixUI_CustomizeDlg_BackFeatureTree', 'LicenseAgreementDlg'], ['WixUI_CustomizeDlg_Next', 'VerifyReadyDlg'], ['WixUI_VerifyReadyDlg_BackCustom', 'CustomizeDlg'], ['WixUI_VerifyReadyDlg_BackChange', 'CustomizeDlg'], ['WixUI_VerifyReadyDlg_BackRepair', 'MaintenanceTypeDlg'], ['WixUI_VerifyReadyDlg_BackTypical', 'SetupTypeDlg'], ['WixUI_VerifyReadyDlg_BackFeatureTree', 'CustomizeDlg'], ['WixUI_VerifyReadyDlg_BackComplete', 'SetupTypeDlg'], ['WixUI_MaintenanceWelcomeDlg_Next', 'MaintenanceTypeDlg'], ['WixUI_MaintenanceTypeDlg_Change', 'CustomizeDlg'], ['WixUI_MaintenanceTypeDlg_Repair', 'VerifyRepairDlg'], ['WixUI_MaintenanceTypeDlg_Remove', 'VerifyRemoveDlg'], ['WixUI_MaintenanceTypeDlg_Back', 'MaintenanceWelcomeDlg'], ['WixUI_VerifyRemoveDlg_Back', 'MaintenanceTypeDlg'], ['WixUI_VerifyRepairDlg_Back', 'MaintenanceTypeDlg'], ['ErrorDialog', 'ErrorDlg'], ['SecureCustomProperties', 'OLDERVERSIONBEINGUPGRADED']]```