Crap: VersionInfo handling broken as of Delphi XE2
Posted by jpluimers on 2012/09/11
Today I found out the hard way that you really need a build integration system for managing VersionInfo in Delphi applications: as of Delphi XE2 it is broken in the IDE.
See these links:
- How to manage version information on Delphi XE2 across platforms – Stack Overflow.
- Embarcadero Discussion Forums: Xe2 and version info? ….
- Embarcadero Discussion Forums: Delphi XE2 – Application Version Info ….
This is the only workable workaround so far:
- DDevExtensions 2.6 | Andy’s Blog and Tools.
(with short PDF manual)
–jeroen
Rate this:
Share this:
- Click to share on Mastodon (Opens in new window) Mastodon
- Click to share on Bluesky (Opens in new window) Bluesky
- Share on Tumblr
- Click to share on Reddit (Opens in new window) Reddit
- Click to share on Threads (Opens in new window) Threads
- Tweet
- Click to share on Telegram (Opens in new window) Telegram
- Click to share on Nextdoor (Opens in new window) Nextdoor
- Click to share on WhatsApp (Opens in new window) WhatsApp
- Click to print (Opens in new window) Print
- Click to email a link to a friend (Opens in new window) Email
Related
This entry was posted on 2012/09/11 at 20:14 and is filed under Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development. Tagged: application version, computer, Delphi, delphi applications, education, embarcadero, integration system, stack overflow, technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
14 Responses to “Crap: VersionInfo handling broken as of Delphi XE2”
Leave a reply to jpluimers Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.






Dave said
I unfortunately found this out several months ago after upgrading to XE2 and updating my Integrated Testing Helper IDE expert (Spent a month going around in circles trying all sorts of workaround). I now have to manage this all myself through a VersionInfo.RC file built and managed by my IDE expert. If any one is interested http://www.davidghoyle.co.uk/ithelper.html.
jpluimers said
Look like a cool tool to me!
–jeroen
Skydvrz said
jeroen,
If you are referring to the old build number autoincrement feature in the IDE: It is supposedly fixed in XE3. Lots of folks complained (including me) about the change to an idiotic timestamp instead of bumping the build number by one. Apparently Embarcadero listened to it’s users for once. I have XE3 but haven’t installed it, so I can’t verify the fix just yet.
jpluimers said
Good to hear that part is fixed.
At least as important is the management of VersionInfo over the various build configurations.
Boy I wish Delphi had an AssemblyInfo.pas (:
Some of the links in the comments gives you solutions that are very similar to that though.
–jeroen
boz said
So you have to buy XE3 to fix the bug in XE2? or will there be any updates for XE2 Users?
jpluimers said
Since there are enough alternatives, I guess this won’t be fixed for XE2.
Thomas Mueller said
That’s why I have switched to build events and wrote dzPrepBuild for generating the version information resource.
http://www.dummzeuch.de/delphi/dzprepbuild/englisch.html
source code on sourceforge:
http://sourceforge.net/projects/dzprepbuild/
jpluimers said
That is awesome!
LDS said
As soon as there is more than one developer working an an application you need a way to set version info data from a “reliable” source – usually a build system would do. What Delphi lacks – and I opened a QC about that – is a way to set the versioninfo data using command line build parameters. Sure, you can modify and compile a resource, but it makes it a little more complicated than it should be.
jpluimers said
You need one as a single developer too. But it can take a lot of energy to convince people to put the money on the table to realize it.
What QC is it? I’d probably vote on it.
WarrenP said
Command line build systems are the only way to go for production builds, anyways. It guarantees that the code in version control, and only that code, went into production. Uncomitted local working changes, and other local pollution can too easily get into your builds. Even if you’re the only developer on a project, it’s just one less thing to worry about. Set up jenkins, and use a dedicated build machine. It can tag your versioninfo automatically with your version control revision, the date built, and auto-increment your build counter, all at once. Now you really KNOW what code is in what build, and your Interns, (or you on a day without enough caffeine) can’t mess it up.
W
jpluimers said
I totally agree. And I urge all clients to do. Regrettably, not all projects that gets passed on have that. If I have the chance, I introduce version control and automatic build systems. I need to get some budget for this one (:
David Heffernan said
I’d never consider letting Delphi manage the version resource for me. I do all my resources myself.
jpluimers said
Trust me, that will be in that particular project too.