[Lazarus] How to add custom fields to Version Info resource section?
Phil Hess
macpgmr at fastermac.net
Sun Dec 6 19:15:01 CET 2009
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" <cronodragon at gmail.com> wrote:
> 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
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
More information about the Lazarus
mailing list