I'm trying to get the Windows version (10 or 11 in this case) of one of its windows update file by reading the metadata in Python. I've tried numerous ways, but they all seemed to fail. Is there any way to get the intended Windows Version from its file (.msu .msi .cab .msp) without relying on the file name? I'm getting these files from Windows Update Catalog, search "windows 10" or "windows 11". Continue reading...