I modify package version (increment) in delphi 6 with tiny exe (in the .res package file) before upload it in my server source.

I modify package version (increment) in delphi 6 with tiny exe (in the .res package file) before upload it in my server source.
But in Delphi XE4, where is the version number ? in .res,in .dproj ? How modify it ?

Comments

  1. In delphi 6, I extract res info from bpl and modify it and reinject it in bpl with ressourcehacker.
    so, the same for XE4 but in the dproj, what field i must modify ?

    ReplyDelete
  2. Michel Podvin You can still extract the version info resource from the BPL; that hasn't changed. If you've always done it this way, it might be easier to keep doing that.

    What did change, is that the version info is now also present in readable form in the .dproj source (XML) file. If you adjust that, you'll have to do so before building; after which it will be compiled into the BPL's resources.

    (If you're using source code revision software, this has the advantage of the version numbering also being present in the repository).

    The fields you're looking for are VerInfo_MajorVer, VerInfo_MinorVer, VerInfo_Release and VerInfo_Build; and you'd also need to adjust the relevant part of VerInfo_Keys. But depending on how you've set up your build configurations, those fields could occur one or more times, in several different PropertyGroup sections, or be absent.

    (In my experience, Delphi XE+ tends to mess up version info rather easily. I usually want the version numbers to be the same across all configurations, but if I (or a colleague) ever change the version info without first selecting the root configuration, Delphi creates a completely different copy of the version info for that configuration, which then no longer inherits the 'root' version numbering. The only way to fix that is to manually adjust the .dproj file).

    ReplyDelete

Post a Comment