Jump to content
alogrep

Cannot set Version info nor Icons

Recommended Posts

HI.

Does anybody have an idea of how to fix this strange behaviour?

I am trying to set version info (see m1.jpg) and I get the  mysterious message

shown in m2.jpg ('....... only contain 2,3, or 4 numbers....???).

Thanks.

m1.jpg

m2.jpg

Share this post


Link to post
2 minutes ago, alogrep said:

Does anybody have an idea of how to fix this strange behaviour?

Your screenshot is cut off - it does not actually show the ProductVersion value (further down)

Share this post


Link to post
30 minutes ago, alogrep said:

Does anybody have an idea of how to fix this strange behaviour?

try this:

  1. the version number will be changed (automatically or not) when you "BUILD" the project, (or manually), then...
    1. Project->Options-> use RELEASE option
    2. do the changes necessary, like define your start values on "Module version number"
    3. use "Auto increment build number" -- dont worry about anymore!
  2. now, "BUILD" your project and see the changes!
  3. anyhing, try "delete" the "xxxxxx.DPROJ" if any inconsistence -> remeber that your old setup will be losted, of course!

 

image.thumb.png.cbf1225a1abd429ccee8c4703389f439.png

 

Edited by programmerdelphi2k

Share this post


Link to post

When I'm having troube with Version Info 99% the time I have to delete the dproj and recreate it.

I did not bother yet to find out why but I suspect the "Cfg_X" stuff is getting messed up.

Edited by Attila Kovacs

Share this post


Link to post

other way, hard-coded can this way - no more Project->Options it's necessary:

  1. create a file any name with .RC extension and add it your project
  2. now, just BUILD your project!

 

NOTE: you can create a "RC" to share with all project, and a "RC" specific to one project using vars in shared-RC, just "include it" ->  #include "sharedversiondefs.rc"

//
//  RC file script
//
#define VER_MAJ 1
#define VER_MIN 2
#define VER_SUB 3
#define VER_BUILD 4000
//
#define VER_P_MAJ 5
#define VER_P_MIN 6
#define VER_P_SUB 7
#define VER_P_BUILD 8000
//
VS_VERSION_INFO             VERSIONINFO
//
FILEVERSION                 VER_MAJ,VER_MIN,VER_SUB,VER_BUILD            /* 1,2,3,4000 */
// PRODUCTVERSION              VER_P_MAJ,VER_P_MIN,VER_P_SUB,VER_P_BUILD    /* 5,6,7,800  */
//
// string terminated with null
#define MyNameInternal       "HelloWorld\0"
#define MyNameProduct        "Hello Product Name\0"
//
#define MyCompanySTR         "My Company Name Delphi\0"
#define MyDescriptionSTR     "This my specific file description to "MyCompanySTR"\0"
#define MyFileVersionSTR     "FILEVERSION\0"
#define MyInternalNameSTR    "This is my specific internal name "MyNameInternal"\0"
#define MyLegalCopyrightSTR  "(c) 2022 "MyCompanySTR"\0"
#define MyProductNameSTR     "This is my product name: "MyNameProduct"\0"
#define MyProductVersionSTR  "9.8.7.6\0"  // unfortunatelly, it dont accept the same way than "MyFileVersionSTR" above
//
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"    /* your language code */
        BEGIN
            VALUE "CompanyName",       MyCompanySTR
            VALUE "FileDescription",   MyDescriptionSTR
            // VALUE "FileVersion",       MyFileVersionSTR  // using FILEVERSION above! else, use this!
            VALUE "InternalName",      MyInternalNameSTR
            VALUE "LegalCopyright",    MyLegalCopyrightSTR
            VALUE "ProductName",       MyProductNameSTR
            VALUE "ProductVersion",    MyProductVersionSTR
        END
    END

    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252    /* lang, codepage */
    END
END

 

image.png.8a03b012119a2d02869caa2a503e1b76.png

Edited by programmerdelphi2k

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×