Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

How to add custom fields to Version Info resource section?

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marco Alvarado

Hello!

I need to add a few custom fields to my application's version info. On Lazarus 0.9.29 beta, I tried doing it with Project > Project Options... > Version Information, but there is no way to add custom fields.

Then I tried modifing the .rc file, like:

1 VERSIONINFO
FILEVERSION 0,0,0,0
PRODUCTVERSION 1,0,0,0
{
BLOCK "StringFileInfo"
{
BLOCK "040904E4"
{
...
VALUE "MyCustomField", "xxxxx"
...

But the changes are destroyed when I rebuild the project.

Also tried modifing the .lpi file, like:

<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
...
<VersionInfo>
...
<MyCustomField Value="xxxxx"/>
...

But these changes are destroyed again.

The only way I could do it was using Resource Hacker, and it worked right, but I would like to find a way to store these fields in my project from Lazarus. Any ideas??

Thanks and regards!
-Marco

Reply by email