A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.
Do you mean the version details that show up if you right-click EXE files and DLLs in Windows Explorer? If so, these are defined with a VERSIONINFO resource, and you need a resource editor or resource compiler to link them into your EXE.
(...if you mean something different, please ignore the above...)
Tuesday, March 22, 2005
To set the number of an exe you are compiling, or some other arbirary exe?
Wednesday, March 23, 2005
Thanks for the response chaps.
I need to be able to set the FILEVERSION string for a bunch of files (EXE and DLL), and yes, it is the values that appear on the right click - properties page.
We could use our IDE (Delphi) to do this but it gets too awkward when there are multiple users working on the application. In order for the IDE to do this, it needs write access to the project file(s) to update the values. To have this, the user needs to have the project file(s) checked out of the config system, which we are reluctant to do when no other actual changes are necessary. Also, only one person can do this at any one time.
In addition to this, our main sales agent has their own branded version of our application, along with a equivalent version numbers. eg our Version 7.4.2, is their 2.4.2.
So when we release 7.4.3 they will be releasing 2.4.3, and so need to modify the file version number.
Thanks for the link to Resource Hacker, it does what we need. It's a shame it's not possible to do this from a command line, or call it from a batch file. I'm surprised there aren't any VCL/ActiveX components that allow the modification of these file properties?
This topic is archived. No further replies will be accepted.Other recent topics
Powered by FogBugz