[DUG] Delphi Environment variables
David O'Brien
Dave at iccs.co.nz
Tue Dec 31 12:09:06 NZDT 2019
Thanks,
I’m trying to use the library paths to search for files depending on the selection of Delphi version, but with these environment variables $(BDS), etc. not being defined in the registry, it makes it quite difficult. I can get the environment variables when Delphi is running, but just for that version. I suppose it is generating the vars at runtime.
Having a list of the defined vars would be useful, but I can’t even find that. Rather frustrating…
From: delphi-bounces at listserver.123.net.nz <delphi-bounces at listserver.123.net.nz> On Behalf Of John Bird
Sent: Tuesday, 31 December 2019 11:06 AM
To: NZ Borland Developers Group - Delphi List <delphi at listserver.123.net.nz>
Subject: Re: [DUG] Delphi Environment variables
Part of the answer:
bin folder will be below the BDS folder
Also see
http://docwiki.embarcadero.com/RADStudio/Rio/en/Compiler_Versions
If you change the defaults, a good idea is to take a screenshot of the screen before starting the install showing the folders set showing the location of BDS, samples and common files.
See file SettingData in bin folder to see definitions of folders and version numbers
e.g.
"C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\SettingData.xml"
also
<SettingData>
<Product Name='Delphi 7' Version='7.0' RegKey='Software\Borland\Delphi\7.0'/>
<Product Name='Delphi 8' Version='8.0' RegKey='Software\Borland\Delphi\8.0'/>
<Product Name='Delphi 2005' Version='9.0' RegKey='Software\Borland\Delphi\9.0'/>
<Product Name='BDS 2006' Version='10.0' RegKey='Software\Borland\BDS\10.0'/>
<Product Name='RAD Studio 2007' Version='11.0' RegKey='Software\Borland\BDS\5.0'/>
<Product Name='RAD Studio 2009' Version='12.0' RegKey='Software\Borland\DBD\7.0'/>
<Product Name='RAD Studio 2010' Version='14.0' RegKey='Software\CodeGear\BDS\7.0'/>
<Product Name='RAD Studio XE' Version='15.0' RegKey='Software\Embarcadero\BDS\8.0'/>
<Product Name='RAD Studio XE2' Version='16.0' RegKey='Software\Embarcadero\BDS\9.0'/>
<Product Name='RAD Studio XE3' Version='17.0' RegKey='Software\Embarcadero\BDS\10.0'/>
<Product Name='RAD Studio XE4' Version='18.0' RegKey='Software\Embarcadero\BDS\11.0'/>
<Product Name='RAD Studio XE5' Version='19.0' RegKey='Software\Embarcadero\BDS\12.0'/>
<Product Name='RAD Studio XE6' Version='20.0' RegKey='Software\Embarcadero\BDS\14.0'/>
<Product Name='RAD Studio XE7' Version='21.0' RegKey='Software\Embarcadero\BDS\15.0'/>
<Product Name='RAD Studio XE8' Version='22.0' RegKey='Software\Embarcadero\BDS\16.0'/>
<Product Name='RAD Studio 10 Seattle' Version='23.0' RegKey='Software\Embarcadero\BDS\17.0'/>
<Product Name='RAD Studio 10.1 Berlin' Version='24.0' RegKey='Software\Embarcadero\BDS\18.0'/>
<Product Name='RAD Studio 10.2' Version='25.0' RegKey='Software\Embarcadero\BDS\19.0'/>
<Product Name='RAD Studio 10.3' Version='26.0' RegKey='Software\Embarcadero\BDS\20.0'/>
<!--
We use The <Description> tag to relate a description and a friendly name with a setting.
- Name: The key name in the registry.
- FriendlyName: The friendly name to be shown in the selection settings page in the Migration Tool.
- Value: The description to be shown in the bottom in the selection settings page in the Migration Tool when the setting has been selected.
Example:
<Description Name="Auto Save" FriendlyName="Auto Save options" Value="Manages the Autosave for the editor files and the project desktop"/>
-->
<!-- Group Rules -->
<GroupRule KeyName="DBExpress" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Personalities" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="ToolForm\Mapping" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Palette" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Debugging\Embarcadero Debuggers\Evaluators" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Known Appmethod Packages" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Known IDE Packages" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Known Packages" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Package Cache" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<GroupRule KeyName="Library" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="False" ActionType="path"/>
</GroupRule>
<GroupRule KeyName="CatalogRepository" DescriptionRef="">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</GroupRule>
<!-- Setting Rules -->
<SettingRule KeyName="AutoRun\UpdateCheck" Name="ProgramToRun">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
<SettingRule KeyName="Editor\Source Options\Borland.EditOptions.Pascal" Name="File Extensions">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
<SettingRule KeyName="Globals" Name="InstalledDemosDir">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
<SettingRule KeyName="Transfer" Name="Title0">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
<SettingRule KeyName="Transfer" Name="Path0">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
<SettingRule KeyName="Transfer" Name="WorkingDir0">
<Rule FromVersion="" ToVersion="" Value="" Excluded="True"/>
</SettingRule>
</SettingData>
From: David O'Brien
Sent: Tuesday, December 31, 2019 10:20 AM
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Delphi Environment variables
I am looking for the location of the environment variables: $(BDS), $(BDSBIN), etc…
I cannot find the definitions anywhere. I would like to get these for each installed version of Delphi.
Any idea where these are defined?
Regards,
Dave.
________________________________
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz<mailto:delphi at listserver.123.net.nz>
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz<mailto:delphi-request at listserver.123.net.nz> with Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20191230/31cf99c0/attachment-0001.html
More information about the Delphi
mailing list