Leave a Reply

13 Comments on "Auto Increment Version Information Pre-build tool for Delphi XE2 using VerInfo"

avatar
  Subscribe  
newest oldest most voted
Notify of
Ninow1987
Guest

Hello,

there is a problem with your tool. On building the project the IDE shows a message that “verinfo D:verinfoNExAutoStarter.rc /update is closed with code 9009”.
I have Delphi XE2 Update 4

Do you have an idea?

Best Regards

dewa
Guest

Hi, I created it for XE2 and then for Update 4 too, and so far found no problem.
but let me check it

Regards/

Ninow1987
Guest

Hello dewa,

I found the error
The exe was not in the project folder. Sorry for this.

Have now added the entire path f.e.: “D:verinfoverinfo.exe” “D:verinfoNExAutoStarter.rc” /update

Best Regards

dewa
Guest

Hi Ninow,
glad it works and hope it helps 🙂

Bononi
Guest

Hi,

I think your tool is the best solution. I tried the DDev Extension expert but it doesn’t seem to auto increment the build, I had to do it manually all the time.

Thanks a lot !

dewa
Guest

Hi Bononi,
I tried DDev Extension, but do not use it either, reduce addons usage.
Happy coding 🙂

Hans
Guest

Hello,

I try to use this Auto Increment Version Information Pre-build tool.
I have have installed it in Delphi XE2 Starter.
I can’t ‘Uncheck the “Include version information in project”’, when I uncheck and click the OK button, it looks it is ok.
But when open “Version info” again it is checked.

When I compile or build the project Delphi is hanging at the stage: “Checking Kloktester.rc”

What I am doing wrong?

Best regards,

Hans

dewa
Guest

Hi Hans,
I have not tried it on XE2 Starter, but usually it just uncheck “Include version information in project” of “Project Options”, click OK and Save project, and upon compilation Delphi will launch it.
Is the path to verinfo.exe already set correctly? or put it in path environment?

Paul Holland
Guest

G’day Dewa,

I’ve been looking for a tool like yours for a while, so was quite excited to finally install it.

I think I followed your simple and clear instructions correctly.

But when I go to build my application, I get an error:

[Exec Error] The command “verinfo N:DelphiProjectsObject General LedgerGLOW renewedGLOWrenew.rc /update” exited with code 9009.

I couldn’t find reference to “Code 9009” anywhere.

Have I missed something obvious?

Cheers, Paul

dewa
Guest

Hi Paul,
it seemed “verinfo” could not be accessed.
Try to add complete path to “verinfo”, eg:

C:verinfo_pathverinfo N:DelphiProjectsObject General LedgerGLOW renewedGLOWrenew.rc /update”

or put “verinfo” in PATH accessible folder

Paul Holland
Guest

Thanks a lot Dewa.

Fixing the path has advanced things, but still having problems. RAD Studio XE2 IDE now freezes on the BRCC32 compile of the *.rc file. Killing Verinfo.exe (in Task Manager) allows compilation to complete.

I’ve tested the Pre-build event string in a command-line window and it increments the build number OK.

Cheers, Paul

Paul Holland
Guest

OK solved it myself.

Problem was fully qualified path to *.dr file contained spaces. Just changed Pre-build event string so filename wrapped in double-quotes:

verinfo “$(INPUTDIR)GLOWrenew Verinfo.rc” /update

$(INPUTDIR) is N:DelphiProjectsObject General LedgerGLOW renewed

Cheers, Paul

dewa
Guest

glad it’s solved !
happy coding 🙂