alogrep 0 Posted May 20, 2023 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. Share this post Link to post
Dave Nottage 557 Posted May 20, 2023 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
programmerdelphi2k 237 Posted May 20, 2023 (edited) 30 minutes ago, alogrep said: Does anybody have an idea of how to fix this strange behaviour? try this: the version number will be changed (automatically or not) when you "BUILD" the project, (or manually), then... Project->Options-> use RELEASE option do the changes necessary, like define your start values on "Module version number" use "Auto increment build number" -- dont worry about anymore! now, "BUILD" your project and see the changes! anyhing, try "delete" the "xxxxxx.DPROJ" if any inconsistence -> remeber that your old setup will be losted, of course! Edited May 20, 2023 by programmerdelphi2k Share this post Link to post
Attila Kovacs 629 Posted May 20, 2023 (edited) 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 May 20, 2023 by Attila Kovacs Share this post Link to post
programmerdelphi2k 237 Posted May 20, 2023 (edited) other way, hard-coded can this way - no more Project->Options it's necessary: create a file any name with .RC extension and add it your project 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 Edited May 20, 2023 by programmerdelphi2k Share this post Link to post