MantisBT - CMake
View Issue Details
0010282CMakeCCMakepublic2010-02-12 13:592010-02-12 15:25
Fritz Dierks 
 
normalblockN/A
closedduplicate 
CMake-2-8 
 
0010282: CMake installer cleared the PATH variable
After installing CMake 2.8 the PATH variable contained only the CMake bin directory, that is it read:

   PATH=C:\Programme\CMake 2.8\bin

Arrrgh!!!

We had a similar effect some time ago with the NSIS installer in one of our own projects. It turned out one must use the "large strings build" of NSIS in order to avoid this. The description says "If you are working with large strings use this build which has a maximum string length of 8192 bytes instead of the default of 1024 bytes." (see http://nsis.sourceforge.net/Special_Builds [^]).

The PATH variable on some computers can get pretty long and if it exceeds 1024 bytes is seems that NSIS cannot cope and deletes the content of the PATH when attempting to append another directory. That's also the reason why you normally don't see this problem when testing on a clean machine.

No tags attached.
duplicate of 0010257closed Bill Hoffman Installer erasing windows PATH 
Issue History
2010-02-12 13:59Fritz DierksNew Issue
2010-02-12 15:25Bill HoffmanRelationship addedduplicate of 0010257
2010-02-12 15:25Bill HoffmanStatusnew => closed
2010-02-12 15:25Bill HoffmanResolutionopen => duplicate

There are no notes attached to this issue.