MantisBT - CMake
View Issue Details
0011931CMakeCMakeSetuppublic2011-03-04 20:122011-09-05 11:37
Andrew Pennebaker 
David Cole 
normalminoralways
closedduplicate 
Windows 7 Professional x64Windows7
CMake 2.8.4 
 
0011931: Popup during installation: "Warning! PATH too long installer unable to modify PATH!"
I want CMake to add itself to my PATH. At the end of installation, it complains with a popup:

Warning! PATH too long installer unable to modify PATH!

I've tried shrinking my system and user PATHs.

I've tried running the installer with "Add CMake to the system PATH for all users" and "Add CMake to the system PATH for current user". Both show the popup.

I have a long PATH, but the installers for Visual Studio, Python, Haskell Platform, ... don't seem to mind.

Possible solutions:

* Double CMake's PATH length limit.
* Use Advanced Installer (http://www.advancedinstaller.com/ [^]) or Nullsoft Installer (http://nsis.sourceforge.net [^]).
* Change the warning text to "Failed to add CMake to PATH. Please add C:\Program Files ...\CMake to PATH manually."
Add several directories to PATH. Run the CMake installer, opting to add to PATH.
C:\Users\andrew\Desktop>echo %PATH%
%CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin;C:\Ruby\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\e\cmd;C:\Program Files (86)\Lua\5.1;C:\Program Files (x86)\Lua\5.1\clibs;C:\Program Files (x86)\Common Files\DivX Shared\;C:\Program Files (x86)\OpenSSH\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Git\cmd;C:\Users\andrew\AppData\Roaming\cabal\bin;C:\Program Files (x86)\Haskell\bin;C:\Python26;C:\Program Files (x86)\Java\jdk1.6.0_18\bin;C:\MinGW\bin;C:\msys\1.0\bn;C:\Program Files (x86)\Inkscape;C:\Program Files\Haxx\cURL;C:\Program Files (x86)\erl5.8.2\bin
No tags attached.
duplicate of 0010257closed Bill Hoffman Installer erasing windows PATH 
Issue History
2011-03-04 20:12Andrew PennebakerNew Issue
2011-03-04 20:47Andrew PennebakerNote Added: 0025671
2011-03-17 13:40David ColeAssigned To => David Cole
2011-03-17 13:40David ColeStatusnew => assigned
2011-03-17 13:44David ColeNote Added: 0025800
2011-03-17 13:44David ColeRelationship addedduplicate of 0010257
2011-03-17 13:44David ColeStatusassigned => resolved
2011-03-17 13:44David ColeResolutionopen => duplicate
2011-09-05 11:37David ColeStatusresolved => closed
2011-09-05 11:37David ColeNote Added: 0027338

Notes
(0025671)
Andrew Pennebaker   
2011-03-04 20:47   
I got CMake to add itself to PATH by shortening PATH a little more.

Before:

PATH is 816 characters long.

After removing "C:\Program Files (x86)\Inkscape;":

PATH is 784 characters long.

After successfully installing CMake:

PATH is 821 characters long.

CMake's imagined PATH limit is close to 784 and 821.
(0025800)
David Cole   
2011-03-17 13:44   
This is not really a "duplicate" per se. Adding the warning was the fix for the "duplicate" bug id 0010257 -- so, the warning is doing it's job, and telling you that it's not going to change the PATH because it can't do so safely and reliably.

CMake already does use the NSIS system to build its Windows installers.

According to 0010257:0019499 there is a special build of NSIS, or a way to get one that will work with PATH lengths up to 8192.

When we upgrade to the version NSIS, we'll get the fix "for free" -- until then, you'll have to work around this problem, by adding it to the PATH manually if you really need it in the PATH.
(0027338)
David Cole   
2011-09-05 11:37   
Closing resolved issues that have not been updated in more than 4 months.