PATH environment overwritten while installing
Posted: 18 May 2010 12:31 AM   [ Ignore ]
New Member
Rank
Total Posts:  5
Joined  2010-05-17

Hi AlexP

I just installed CL-Eye Platform SDK and the installation software overwrote the system environment variable PATH with following content:
C:\Program Files (x86)\Code Laboratories\CL-Eye Platform SDK\Bin

All the directories I had before the installation just disappeared. I do not know if this behavior is specific to my OS (Windows 7 - 64 bits), but I think this could be easily avoided if the path to the “Bin” directory of the SDK would be appended to the existing PATH, instead of overwriting it.

Can you please confirm this and fix it in an upcoming release?

Thanks

Steph

Profile
 
 
Posted: 18 May 2010 05:35 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

The directory is appended and not overwriting the path variable. Are you sure something else didn’t clear the path before the installation of the CL-Eye Platform SDK?

Profile
 
 
Posted: 19 May 2010 06:41 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  5
Joined  2010-05-17

The path is cleared by the installer of the SDK.
The behavior (clear or append) actually depends on the length of the variable PATH.

After some tests, it seems that if the length is less than 1023 characters, then the installer attempts to append the path of the Bin directory. If the length is longer than 1023 characters, the installers issues following message:
PATH was empty and has been updated by target
Then the PATH is overwritten.

Also, the behavior is not the expected one if the length of the PATH is between 960 characters and 1023. In this case, the installer attempts to append the Bin directory to the PATH, but writes only the first characters until the global length reaches 1023.

If you want to try this out, set your PATH variable to following content:

C:\Program Files (x86)\myLibrary1\bin;C:\Program Files (x86)\myLibrary2\bin;C:\Program Files (x86)\myLibrary3\bin;C:\Program Files (x86)\myLibrary4\bin;C:\Program Files (x86)\myLibrary5\bin;C:\Program Files (x86)\myLibrary6\bin;C:\Program Files (x86)\myLibrary7\bin;C:\Program Files (x86)\myLibrary8\bin;C:\Program Files (x86)\myLibrary9\bin;C:\Program Files (x86)\myLibrary10\bin;C:\Program Files (x86)\myLibrary11\bin;C:\Program Files (x86)\myLibrary12\bin;C:\Program Files (x86)\myLibrary13\bin;C:\Program Files (x86)\myLibrary14\bin;C:\Program Files (x86)\myLibrary15\bin;C:\Program Files (x86)\myLibrary16\bin;C:\Program Files (x86)\myLibrary17\bin;C:\Program Files (x86)\myLibrary18\bin;C:\Program Files (x86)\myLibrary19\bin;C:\Program Files (x86)\myLibrary20\bin;C:\Program Files (x86)\myLibrary21\bin;C:\Program Files (x86)\myLibrary22\bin;C:\Program Files (x86)\myLibrary23\bin;C:\Program Files (x86)\myLibrary24\bin;C:\Program Files (x86)\myLibrary25\bin;C:\Program Files (x86)\myLibrary26\bin;C:\Program Files (x86)\myLibrary27\bin 

These 1043 characters are simply overwritten by the installer.

Regards

Steph

Profile
 
 
Posted: 21 May 2010 09:47 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  585
Joined  2009-09-17

Steph,

Thanks for detailed information on this issue. This seems to be an installer issue (limit of 1024 characters).
We will examine it and let you know about the fix.

Profile
 
 
 
 


RSS 2.0     Atom Feed