<filename>pyinstaller_version.py
import pyinstaller_versionfile

pyinstaller_versionfile.create_versionfile(
    output_file="versionfile.txt",
    version="1.0.0.0",
    company_name="OlkWis",
    file_description="Alien Invasion game",
    internal_name="Alien Invasion",
    legal_copyright="OlkWis. All rights reserved.",
    original_filename="alien_invasion.exe",
    product_name="Simple Game"
)
<filename>pyinstaller_version.py
import pyinstaller_versionfile

pyinstaller_versionfile.create_versionfile(
    output_file="versionfile.txt",
    version="1.0.0.0",
    company_name="OlkWis",
    file_description="Alien Invasion game",
    internal_name="Alien Invasion",
    legal_copyright="OlkWis. All rights reserved.",
    original_filename="alien_invasion.exe",
    product_name="Simple Game"
)