# PropertySet and non-version settings

**URL:** https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404
**Category:** Discussion
**Created:** [March 22, 2007, 5:23am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404 "2007-03-22T05:23:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![martin.lanza](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@martin.lanza](https://www.finalbuilder.com/forums/u/martin.lanza)
#### Post date: [March 22, 2007, 5:23am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404/1 "2007-03-22T05:23:20Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [March 22, 2007, 5:39am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404/2 "2007-03-22T05:39:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![martin.lanza](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@martin.lanza](https://www.finalbuilder.com/forums/u/martin.lanza)
#### Post date: [March 22, 2007, 5:48am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404/3 "2007-03-22T05:48:54Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [March 22, 2007, 5:55am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404/4 "2007-03-22T05:55:47Z")

</div>

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

---

<div class="post-metadata">

### Author: ![martin.lanza](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@martin.lanza](https://www.finalbuilder.com/forums/u/martin.lanza)
#### Post date: [March 22, 2007, 6:11am UTC](https://www.finalbuilder.com/forums/t/propertyset-and-non-version-settings/404/5 "2007-03-22T06:11:16Z")

</div>

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).
