MantisBT - CMake
View Issue Details
0009878CMakeCMakepublic2009-11-10 11:412010-02-09 14:09
Michael McFarland 
David Cole 
normalmajorhave not tried
closedduplicate 
CMake-2-6 
 
0009878: Windows installer destroys user path
After running the Windows installer cmake-2.6.4-win32-x86.exe with the box checked to add cmake to my user path, that path was *replaced* with the string "C:\Program Files\CMake 2.6\bin".

Many other libraries and programs had previously been in my path, which can only be recovered with a system restore.

The installer needs to append the cmake path to any existing PATH settings.
No tags attached.
duplicate of 0008959closed David Cole CMake installation problem for user 'path' variable. 
duplicate of 0010257closed Bill Hoffman Installer erasing windows PATH 
Issue History
2009-11-10 11:41Michael McFarlandNew Issue
2009-11-10 11:51Bill HoffmanStatusnew => assigned
2009-11-10 11:51Bill HoffmanAssigned To => David Cole
2009-12-09 22:46David ColeNote Added: 0018787
2009-12-09 22:48David ColeRelationship addedduplicate of 0008959
2009-12-10 11:51David ColeNote Added: 0018798
2009-12-10 11:51David ColeStatusassigned => resolved
2009-12-10 11:51David ColeResolutionopen => unable to reproduce
2010-02-09 13:55Bill HoffmanRelationship addedduplicate of 0010257
2010-02-09 14:08Bill HoffmanStatusresolved => closed
2010-02-09 14:09Bill HoffmanResolutionunable to reproduce => duplicate

Notes
(0018787)
David Cole   
2009-12-09 22:46   
I tried this with an installer built with today's CVS CMake and could not reproduce the issue on my Windows Vista machine.

The behavior should be that it appends CMake's path to the end of your existing PATH variable. That's what I'm seeing here.

Please send more details, if you have them:
- What version of Windows did this happen on?
- Are you sure it was the CMake installer that did this?
- Did you install anything else around the same time as this?
(0018798)
David Cole   
2009-12-10 11:51   
I tried the official CMake 2.6.4 binary installer downloaded from cmake.org in three scenarios just now:
- on Vista, as an admin user
- on XP, as an admin user
- on XP, as a non-admin user

In each case, I verified that before installing, I had a value in my USER PATH variable. After installing, the value was appended with CMake's bin dir (PATH=%PATH%;C:\...\CMake 2.6\bin). Then, after uninstalling, the value was back to its original value again.

I also tried an installer that I built myself against CVS CMake, and it also did not reproduce on Vista, as an admin user.

Were you using the official installer from cmake.org? Or one that you built yourself? Did you install anything else that may have destroyed your user PATH value? How are you checking your user PATH value?

I could not reproduce the symptoms described here, so I am closing it. If you have more/new/different information that would enable me to reproduce the issue, please re-open it and add a note with that new information.

Thanks,
David Cole