Problems with Version Info for Delphi 2010. (Version Info worked in FB6 ... )
I want to specify ProductVersion for our project. In the Version Info dialog I specify the content for Product Version as a reference to a variable like this: $(PRODUCT_VERSION). I've set following checkboxes:
Auto-Update FileVersion String
Auto-Update ProductVersion String
The "Link ProductVersion to FileVersion" is unchecked. After the build in the generated .rc file the ProductVersion is still linked to FileVersion.
VALUE "FileVersion", "9.8.7.9999\0" VALUE "ProductVersion", "9.8.7.9999\0"
If I open the Version Info dialog again, then the "Link ProductVersion to FileVersion" is CHEKED ! How ?
In this dialog I also specify which property set must be used for Version Info. So the module version number edit fields are disabled. This is correct. But when I uncheck the "Link ProductVersion to FileVersion" checkbox, all of the editboxes are enabled ! Closing the dialog and opening agian, the editboxes are disabled again (correct). But now If I click again on "Link Pr...." checkbox then the editboxes will be enabled again. It seems that doesn't matter whatever I do (even uncheck the 'auto-update productversion string' checkbox), after (I suppose before) the build the "auto-update productversion string" and the "Link Pr..." checkboxes are set back.
What I want to do is: to specify a ProductVersion string in a variable, and use it for ProductVersion in the "StringFileInfo".
I tried to use ProductVersionStr and ProductVersionString (I seen something somewhere in the forums). I don't remember exactly the form, but it didn't work
When “Use Property Set for Version Info” is checked, the other checkboxes should be disabled, and all version info settings come from the Property Set.
Add a “PropertySet Assign Values” action before the Delphi Action and set AutoUpdateProductVersionString is set to false. You can also set the ProductVersionString there too.
in my project I only used Version Info Numbers, and wanted to set other values manually. It worked in FB6. Now I tried your suggestion with a complete Version Info. It is working now.
The key was: "...set AutoUpdateProductVersionString is set to false". I thought that if I leave this entry unchecked, then it'll have a value of 'false'. I was wrong. But still wondering why doesn't work in the original way I used. Also strange, that if I specify a property set for Version Info, why disabled the language selection. Could you check the Version Info part in the near future ? I think there are problems/confusions to solve.
I just played with the version info. It seems, if I specify Version Info Numbers, the value for the following checkboxes are overriden by the Version Info Number property set: - Link ProductVersion to FileVersion - Auto-Update FileVersionString - Auto-Update ProductVersionString Probably it would be a good idea to disable them in this case (?).
I’ll take another look at it. Version info is a lot more complicated than most people think, everyone wants to do things differently, and unfortunately over the years we have probably added too many options while trying to maintain backwards compatibility… a recipe for problems.