View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011931CMakeCMakeSetuppublic2011-03-04 20:122011-09-05 11:37
ReporterAndrew Pennebaker 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformWindows 7 Professional x64OSWindowsOS Version7
Product VersionCMake 2.8.4 
Target VersionFixed in Version 
Summary0011931: Popup during installation: "Warning! PATH too long installer unable to modify PATH!"
DescriptionI 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."
Steps To ReproduceAdd several directories to PATH. Run the CMake installer, opting to add to PATH.
Additional InformationC:\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
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0010257closedBill Hoffman Installer erasing windows PATH 

  Notes
(0025671)
Andrew Pennebaker (reporter)
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 (manager)
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 (manager)
2011-09-05 11:37

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-03-04 20:12 Andrew Pennebaker New Issue
2011-03-04 20:47 Andrew Pennebaker Note Added: 0025671
2011-03-17 13:40 David Cole Assigned To => David Cole
2011-03-17 13:40 David Cole Status new => assigned
2011-03-17 13:44 David Cole Note Added: 0025800
2011-03-17 13:44 David Cole Relationship added duplicate of 0010257
2011-03-17 13:44 David Cole Status assigned => resolved
2011-03-17 13:44 David Cole Resolution open => duplicate
2011-09-05 11:37 David Cole Status resolved => closed
2011-09-05 11:37 David Cole Note Added: 0027338


Copyright © 2000 - 2018 MantisBT Team