Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Installing RAD and PATH environment variable


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Last Post: Mar 24, 2017 8:04 AM Last Post By: Marius .
Adriano Macome

Posts: 56
Registered: 9/26/11
Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 9:29 AM
Hello;

On the installation notes we can see: "You can install RAD Studio Berlin on a system where previous versions of RAD Studio are installed. Note, however, that each version of RAD Studio extends your PATH environment variable, which cannot be longer than 1830 characters before you install RAD Studio Berlin."

Why is that? (I want to install on a Windows 10).

BTW, I can`t find how to define the installation main folder (I install all the versions in C:\RAD). How can I do that?

Best regards,

Adriano
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 10:15 AM   in response to: Adriano Macome in response to: Adriano Macome
El 03/03/2017 a las 18:29, Adriano Macome escribió:
Hello;

On the installation notes we can see: "You can install RAD Studio Berlin on a system where previous versions of RAD Studio are installed. Note, however, that each version of RAD Studio extends your PATH environment variable, which cannot be longer than 1830 characters before you install RAD Studio Berlin."

Why is that? (I want to install on a Windows 10).

The installer adds 4 paths to the PATH environment variable:
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin64
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64

If the length of the PATH variable plus the length of the 4 paths is greater as 2048 characters then the PATH will be
truncated.


BTW, I can`t find how to define the installation main folder (I install all the versions in C:\RAD). How can I do that?

I guess you are using the web installer.
You must press the "Options" button near to the "Next" button at the first step of the installer wizard
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 11:00 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Antonio Estevez wrote:
El 03/03/2017 a las 18:29, Adriano Macome escribió:
Hello;

On the installation notes we can see: "You can install RAD Studio Berlin on a system where previous versions of RAD Studio are installed. Note, however, that each version of RAD Studio extends your PATH environment variable, which cannot be longer than 1830 characters before you install RAD Studio Berlin."

Why is that? (I want to install on a Windows 10).

The installer adds 4 paths to the PATH environment variable:
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin64
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64

If the length of the PATH variable plus the length of the 4 paths is greater as 2048 characters then the PATH will be
truncated.

BTW, I can`t find how to define the installation main folder (I install all the versions in C:\RAD). How can I do that?

I guess you are using the web installer.
You must press the "Options" button near to the "Next" button at the first step of the installer wizard

Note you can shorten this using envionment variables. I have 2 set up

SET RSBIN=C:\Full_Path_To_RAD_Studio_Folder
SET RSPUB=C:\Users\Public\Documents\Embarcadero\Studio

Then change the path's to

%RSBIN%\18.0\bin

and

%RSPUB%\18.0\Bpl\Win64

in the path. You need to reboot afterwards IIRC. The expanded version can be
larger than 2048, the unexpanded version is what needs to stay under 2048.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Adriano Macome

Posts: 56
Registered: 9/26/11
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 11:01 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Thank you! But I really do not understand why it will be truncated. Each environment variable can be bigger than 2048 bytes.

Antonio Estevez wrote:
El 03/03/2017 a las 18:29, Adriano Macome escribió:
Hello;

On the installation notes we can see: "You can install RAD Studio Berlin on a system where previous versions of RAD Studio are installed. Note, however, that each version of RAD Studio extends your PATH environment variable, which cannot be longer than 1830 characters before you install RAD Studio Berlin."

Why is that? (I want to install on a Windows 10).

The installer adds 4 paths to the PATH environment variable:
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin64
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64

If the length of the PATH variable plus the length of the 4 paths is greater as 2048 characters then the PATH will be
truncated.


BTW, I can`t find how to define the installation main folder (I install all the versions in C:\RAD). How can I do that?

I guess you are using the web installer.
You must press the "Options" button near to the "Next" button at the first step of the installer wizard
Jeff Overcash (...

Posts: 1,529
Registered: 9/23/99
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 11:48 AM   in response to: Adriano Macome in response to: Adriano Macome
Adriano Macome wrote:
Thank you! But I really do not understand why it will be truncated. Each environment variable can be bigger than 2048 bytes.

The path is one very long environment variable.

--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Learning is finding out what you already know. Doing is demonstrating that you
know it. Teaching is reminding others that they know it as well as you. We are
all leaners, doers, teachers. (R Bach)
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 3, 2017 11:28 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Hello Antonio,

The installer adds 4 paths to the PATH environment variable:

C:\Full_Path_To_RAD_Studio_Folder\18.0\bin
C:\Full_Path_To_RAD_Studio_Folder\18.0\bin64
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl
C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64

If the length of the PATH variable plus the length of the 4 paths
is greater as 2048 characters then the PATH will be truncated.

And yet, despite numerous user complaints, they still are not reducing their
PATH usage, such as by defining additional evironment variables and then
using those in the PATH, or just eliminating their reliance on the PATH altogether.

--
Remy Lebeau (TeamB)
Marius .

Posts: 11
Registered: 12/3/00
Re: Installing RAD and PATH environment variable  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 24, 2017 8:04 AM   in response to: Adriano Macome in response to: Adriano Macome
I tend to remove all BDS path's from the environment variable. They are
not really needed (unless you are compiling from the commandprompt and
expect 'dos' to find dcc32.exe).
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02