Python Forum
How to add product details in exe generated by pyinstaller
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add product details in exe generated by pyinstaller
#1
So, I am using the pyinstaller, and created my exe through auto-py-to-exe. The problem I see, I lack details of product info
How may I add these details

Attached Files

Thumbnail(s)
   
Reply
#2
Think Assuming that you wants to update the exe details like File description, File version,type,copyright etc.

  1. first create a version.rc file and add products details like copyright,language,version etc... in it. o don't worry Hand it is shown below

 VSVersionInfo(
        ffi=FixedFileInfo(
        filevers=(ProductVersions),
        prodvers=(ProductVersions),
        mask=0x3f,
        flags=0x0,
        OS=0x40004,
        fileType=0x1,
        subtype=0x0,
        date=(0, 0)),
        kids=[StringFileInfo([StringTable(
        u'040904B0',
        [StringStruct(u'FileDescription', u'xyz'),
        StringStruct(u'FileVersion', u'1.0.0.0'),
        StringStruct(u'InternalName', u'xyz'),
        StringStruct(u'LegalCopyright', u'Copyright'),
        StringStruct(u'OriginalFilename', u'xyz'),
        StringStruct(u'ProductName', u'xyz'),
        StringStruct(u'ProductVersion', u'1.0.0.0'),
        StringStruct(u'Language', u'Language Neutral'),
        StringStruct(u'LegalTrademarks', u'xyz')])]), 
        VarFileInfo([VarStruct(u'Translation', [1033, 1200])])]
    )

  1. now,Create main.spec file and call version.rc file in that


a = Analysis(['main.py'],
             pathex=['.'],
             binaries=[],
             datas=[('data\\*.tsv', 'data')],
             hiddenimports=['sklearn.neighbors.typedefs','sklearn.neighbors.quad_tree','sklearn.tree._utils','boto', 
             'smart_open'],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          [],
          name='xyz',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          runtime_tmpdir=None,
          console=True , icon='favicon.ico', version='version.rc')
I hope it will be helpful Smile
Sran012

yet,having confusion
contact me
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HOW TO USE C# GENERATED DLL davide_vergnani 2 1,556 Jun-12-2023, 03:35 PM
Last Post: davide_vergnani
Information Showing trendline formula in a table per product Carlossxx 0 629 May-03-2023, 08:34 AM
Last Post: Carlossxx
  Largest product in a grid (projecteuler problem11) tragical 1 2,242 Sep-14-2020, 01:03 PM
Last Post: Gribouillis
  the exe file by generated by pyinstaller ,can't get the PYTHONPATH roger2020 11 6,857 Jan-14-2020, 11:07 AM
Last Post: roger2020
  How to get file name without the full path details and without extension aruncom2006 1 5,850 Jan-13-2020, 07:37 AM
Last Post: Larz60+
  Blending calculator from final product xerxes106 0 1,589 Dec-05-2019, 10:32 AM
Last Post: xerxes106
  Make dual vector dot-product more efficient technossomy 3 2,487 Nov-28-2019, 09:27 PM
Last Post: Gribouillis
  Store a product/item in a inventory program viktoria_linn 1 4,024 Jul-02-2019, 09:26 PM
Last Post: DeaD_EyE
  pyinstaller generated code gets flagged by NIS kris44dad 3 6,302 Jan-03-2019, 08:41 AM
Last Post: buran
  Product expression. jarrod0987 1 2,340 Dec-13-2018, 11:32 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020