My project in Delphi load an icon from an resourcefile in exe-file by a compiler directive in dpr-file.
Now of course I also want versioninfo in the exe-file.
I do like this:
- Define a property set. Called it MyVersion.
- Assign MajorVersion, MinorVersion etc from variables using Property Set assign in MyVersion…
- Compile the exe. Versioninfo is using the MyVersion.
I got version in the exe-file, but only if I Build Delphi Actions project tab have checked Regenerate Resource.
Otherwise version is just 0 like 0.0.0.0
But problem is that to get an icon in exe-file I must clear the Regenerate Resource…
So any advice or recommendation what to do ?