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.

Phil Hess

Marco,

I think if you turn off everything in project options that goes into the resource, you can prevent Lazarus from overwriting your file. That would be version info, icon and manifest.

Delphi 2 had the ability to add custom version info keys but that's not supported in Lazarus.

Note that embedding version info in the executable is a Windows-only thing. You could use an external file containing version info (for example, .ini format) that could be used on all platforms instead as a solution too.

Thanks.

-Phil

----- "Marco Alvarado" wrote 49 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email