PropertySet and non-version settings

As suggested we’re using a PropertySet to manage our global build numbers. That works well, giving us a uniform number across a number of Delphi7 and C# projects.

Unfortunately it seems that the PropertySet version info is not working as I expected it to. We get all our Delphi7 executables with ProductName etc set to the same value. This makes things a bit tricky, we don’t really want the VersionInfo in ProductA saying that it’s actually ProductB. I’m not sure where this is happening, as the ini file that we use looks right:

[Version]
BuildVersion=87
CompanyName=Decisions Made Easy
CompileDate=
DebugBuild=False
DLL=False
FileDescription=
FileVersion=
InternalName=
LegalCopyright=
LegalTrademarks=
MajorVersion=6
MinorVersion=3
OriginalFilename=
PreReleaseBuild=False
PrivateBuild=False
ProductName=
ProductVersion=
ReleaseVersion=1
SpecialBuild=False

But I just built all the projects and some of the Delphi7 ones came out with the ProductName from the (disabled) VersionInfo settings in FinalBuilder. Others had this blank and I can’t see the pattern at this stage. Presumably they are disabled because the values (are supposed to) come from the PropertySet.

Yep, the properties come from the PropertySet.

This is how we do it:

Define PropertySet
Load PropertySet from INI

Increment Build number in propertyset (if required)

PropertySet Assign Values (set product name to Project A)
Compile Project A

PropertySet Assign Values (set product name to Project B)
Compile Project B

Save PropertySet to INI


hth.

Ah, so it has to be a manual process. I was hoping to avoid the extra step for every project.

I assume there is no way to load those values from the Delphi project at (FinalBuilder) runtime? Having the information in two places makes confusion possible, you see. Although I can turn on "update project settings file" I suppose. Hmm.

Don’t worry about setting them in Delphi - just use the property sets and then you’ll only need to maintain one copy.

Thanks. That just means that I have to go through all the projects again and copy all the settings from Delphi into an action. It’s just tedious (and I just reported a bug that makes it even more tedious).