exe property

Post Reply
User avatar
damianodec
Posts: 422
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

exe property

Post 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.
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 39 times
Been thanked: 86 times
Contact:

Re: exe property

Post by Antonio Linares »

Dear Damiano,

You have to add this section into your RC file:

Code: Select all | Expand

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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
TimStone
Posts: 2956
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Has thanked: 25 times
Been thanked: 2 times
Contact:

Re: exe property

Post by TimStone »

Thank you. This is nice.

For other languages, check the Translation codes. English is 0x09.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
Rick Lipkin
Posts: 2674
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: exe property

Post 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


// 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
User avatar
Rick Lipkin
Posts: 2674
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: exe property

Post 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


// 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
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 39 times
Been thanked: 86 times
Contact:

Re: exe property

Post by Antonio Linares »

Dear Rick,

many thanks for sharing it :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply