'How to get version of a .pkg file using Python on Windows?

I have a .pkg file and want to retrieve the version using Python. However, I want to do this on a Windows machine. How would I go about this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source