Page 1 of 1

exe property

PostPosted: Wed Jul 06, 2022 2:28 pm
by damianodec
hi,
this is exe property.
Image

is there any way to insert these property when make an exe ?
description
version
product name
copyright

thank you.

Re: exe property

PostPosted: Wed Jul 06, 2022 3:02 pm
by Antonio Linares
Dear Damiano,

You have to add this section into your RC file:
Code: Select all  Expand view
VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x40004L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "0c0a04b0"
        BEGIN
            VALUE "CompanyName", "FiveTech Software SL"
            VALUE "FileDescription", "FWH app test"
            VALUE "FileVersion", "1.0.0.1"
            VALUE "InternalName", "WindowsP.exe"
            VALUE "LegalCopyright", "Copyright (C) FIveTech Software SL 2022"
            VALUE "OriginalFilename", "WindowsP.exe"
            VALUE "ProductName", "TODO: <Product name>"
            VALUE "ProductVersion", "1.0.0.1"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0xc0a, 1200
    END
END
 


The simplest way to do it is to open your RC file using Visual Studio Community 2022, then you add a "version" component and easily edit it from Visual Studio Community

Re: exe property

PostPosted: Wed Jul 06, 2022 6:17 pm
by TimStone
Thank you. This is nice.

For other languages, check the Translation codes. English is 0x09.

Re: exe property

PostPosted: Thu Jul 07, 2022 12:54 pm
by Rick Lipkin
Antonio

Been using this Version.Rc file .. lots of similarities .. but I have to use Notepad to edit but it still serves the purpose

Code: Select all  Expand view

// Generated by ResEdit 1.6.6
// Copyright (C) 2006-2015
// http://www.resedit.net

#include <windows.h>
#include <commctrl.h>

//
// Version Information resources
//
LANGUAGE 0, SUBLANG_NEUTRAL
1 VERSIONINFO
    FILEVERSION     12,25,0,0
    PRODUCTVERSION  12,25,0,0
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_UNKNOWN
    FILESUBTYPE     VFT2_UNKNOWN
    FILEFLAGSMASK   0
    FILEFLAGS       0
{
    BLOCK "StringFileInfo"
    {
        BLOCK "04090025"
        {
            VALUE "CompanyName", "CCI by Richard Lipkin"
            VALUE "FileDescription", "Leave-Travel Info"
            VALUE "FileVersion", "12.25 Prod"
            VALUE "LegalCopyright", "CCI - SA Software"
        }
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x0409, 0x0025
    }
}

 


Rick Lipkin

Re: exe property

PostPosted: Thu Jul 07, 2022 12:54 pm
by Rick Lipkin
Antonio

Been using this Version.Rc file .. lots of similarities .. but I have to use Notepad to edit but it still serves the purpose

Code: Select all  Expand view

// Generated by ResEdit 1.6.6
// Copyright (C) 2006-2015
// http://www.resedit.net

#include <windows.h>
#include <commctrl.h>

//
// Version Information resources
//
LANGUAGE 0, SUBLANG_NEUTRAL
1 VERSIONINFO
    FILEVERSION     12,25,0,0
    PRODUCTVERSION  12,25,0,0
    FILEOS          VOS__WINDOWS32
    FILETYPE        VFT_UNKNOWN
    FILESUBTYPE     VFT2_UNKNOWN
    FILEFLAGSMASK   0
    FILEFLAGS       0
{
    BLOCK "StringFileInfo"
    {
        BLOCK "04090025"
        {
            VALUE "CompanyName", "CCI by Richard Lipkin"
            VALUE "FileDescription", "Leave-Travel Info"
            VALUE "FileVersion", "12.25 Prod"
            VALUE "LegalCopyright", "CCI - SA Software"
        }
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x0409, 0x0025
    }
}

 


Rick Lipkin

Re: exe property

PostPosted: Thu Jul 07, 2022 3:48 pm
by Antonio Linares
Dear Rick,

many thanks for sharing it :-)