In RAD Studio version 12.1 under the Tools -> Options -> Language -> Delphi -> Library there is a text box labeled Library Path. If I click the button to the right of the textbox it opens a popup with a list of paths that can be added or removed.
Is there a file in Delphi that holds that information and can that file be updated externally?
I have a lot of paths that I need to add and it would be much easier to copy them into a file rather than selecting the path, and clicking add for each one.
I couldn't find anything about this on the Embarcadero website. I looked to see if there were any files that had a name that sounded like it might hold this kind of data but could not find anything.
I just want to know if it is possible and what file
The information is in a the
c:\Users\username\AppData\Roaming\Embarcadero\BDS\23.0\EnvOptions.proj
file but that file is updated by the values in the Registry. If you make any changes to the EnvOptions.proj
file they will be lost.
In RegEdit navigate to: Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\23.0\Library\
Depending on which Operating System you want to use these paths (in my case it is Win32
) then append that Operating System path to the end of the above path.
In the keys for that path go to Search Path
and right click and then click Modify
. All of the paths are stored in the Value Data
string. You can add or remove them from this string. Each path terminates with a semi-colon ;
. There are no carriage returns or line feeds or any other special characters. It is all one long string separated by semi-colons.
The order the path is in that string is the order it is displayed in this list: