Increasing the Delphi XE Project Version Number from the Command Line

I have a Delphi XE project and am trying to change the version number of a program before creating it using MSBuild. The version number information is in the DPROJ file, but if I change these values, the version number will not change. I think the reason is that when changing the version number in the IDE, Delphi saves the changes in the DPROJ and RES files.

Is there a way to compile the RES file from the command line with the changes to the DPROJ file? I found this question , which suggested saving the version number in an INC file and including it in the project, but this is a bit more complicated than just making changes to DPROJ.

+5
source share
5 answers

In the end, I decided to solve this problem with. First, I unchecked “Include version information in the project” in “Project Settings” and added VersionInformation.rc with dummy data. When my build batch file is executed, it generates the correct RC file, and since this RC file is added to the Delphi project, MSBuild uses the contained information for the embedded executable.

+2
source

FinalBuilder . Delphi? , . .

+2

, . Delphi , . , , . , "SetVersion.exe", . . . .

, " ChangeRes.exe", ( ). , .

0

A few years ago, I typed a script to build and increase the build number using ruby ​​and rake. Very easy to use.

After the build, the script calls Inno Setup and creates a new installer.

-2
source

All Articles