Version info resource

211 views
Skip to first unread message

dmajkic

unread,
Nov 5, 2015, 9:13:58 AM11/5/15
to Harbour Users
How can I add VS_VERSION_INFO windows resource to compiler app?

I can see that hbmk2 supports raw rc files, but how to make them show as version info on exe file?

Is there some way in hbmk2 to automatize version numbering (Env vars or macros)?

Rick Lipkin

unread,
Nov 5, 2015, 3:08:54 PM11/5/15
to Harbour Users
Hope this is what you are looking for .. this is my Version.Rc that you link into your application. 

Rick Lipkin

//---------- Version.Rc

//
// Version Information resources
//
1 VERSIONINFO
    FILEVERSION     2,5,0,0
    PRODUCTVERSION  2,5,0,0
    FILEOS          VOS_NT_WINDOWS32
    FILETYPE        VFT_UNKNOWN
    FILESUBTYPE     VFT2_UNKNOWN
    FILEFLAGSMASK   0x00000000
    FILEFLAGS       0x00000000
{
    BLOCK "StringFileInfo"
    {
        BLOCK "04090025"
        {
            VALUE "CompanyName", "Cumming Corp R Lipkin"
            VALUE "FileDescription", "ItinvW32         "
            VALUE "FileVersion", "2.5"
            VALUE "LegalCopyright", "Cumming Corporation  "}
    }
    BLOCK "VarFileInfo"
    {
        VALUE "Translation", 0x0409, 0x0025
    }
}

Dušan D. Majkić

unread,
Nov 6, 2015, 4:06:40 AM11/6/15
to Harbour Users
> Hope this is what you are looking for .. this is my Version.Rc that you link
> into your application.

That's it!

Thank you.

JoséQuintas

unread,
Nov 6, 2015, 6:49:13 AM11/6/15
to harbou...@googlegroups.com
I use this format, same for msvc and mingw

1 VERSIONINFO
FILEVERSION 2015,11,5,1430
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName" , "JPA Tecnologia Ltda"
VALUE "FileDescription" , "JPA Integrado"
VALUE "LegalCopyright" , "Copyright (c) José M C Quintas"
VALUE "OriginalFilename" , "JPA.EXE"
VALUE "ProductName" , "JPA Integrado"
VALUE "ProductVersion" , "JPA 2015 MySQL"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0416, 1252
END
END

#define RT_MANIFEST 24
#define APP_MANIFEST 1

APP_MANIFEST RT_MANIFEST "resource\\jpa.exe.manifest"

AppIcon ICON "jpaicon\\jpa.ico"
...

José M. C. Quintas
Reply all
Reply to author
Forward
0 new messages