MantisBT - CMake
View Issue Details
0015635CMake(No Category)public2015-06-29 09:182016-06-10 14:31
kdawgud 
Kitware Robot 
normalminoralways
closedmoved 
X86-64Windows 7 64-bitSP1
CMake 3.1 
 
0015635: CPACK_NSIS_MODIFY_PATH has no affect on PATH variable
I have a 64-bit windows C++ project where I'm using the NSIS generator for CPack. The installer appears to work fine, except that the PATH variable is not changed at all even when specified by the user during install. The CPACK_NSIS_MODIFY_PATH variable is specified in the cpack config to support changing the path during install. It doesn't seem to matter if "all users" or "current user" is selected.
1) Use CMake 3.1 to generate MS Visual Studio solution file for 64-bit (VS 2010).
2) Build project, then build "package" withing visual studio
3) Run the NSIS .exe installer generated by cpack
4) Select "Add xxxx to the system PATH for all users" when prompted
5) When NSIS install is complete, observe that "echo %PATH%" does not reflect the installed path
6) Reboot and still observe 0000005 holds true.
No tags attached.
related to 0014716closed Brad King CMake installer can't modify %PATH% if it's 'loo long'. 
related to 0010257closed Bill Hoffman Installer erasing windows PATH 
Issue History
2015-06-29 09:18kdawgudNew Issue
2015-06-29 13:19David ColeNote Added: 0039000
2015-06-29 13:19David ColeRelationship addedrelated to 0014716
2015-06-29 13:19David ColeRelationship addedrelated to 0010257
2015-06-29 13:23kdawgudNote Added: 0039001
2015-06-29 13:25kdawgudNote Edited: 0039001bug_revision_view_page.php?bugnote_id=39001#r1812
2016-06-10 14:29Kitware RobotNote Added: 0042802
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0039000)
David Cole   
2015-06-29 13:19   
How long is your PATH before you run the installer?

Is it perhaps related to one of these bugs, talking about "PATH too long" problems with NSIS based installers?

0014716 or 0010257 or one of their related bugs ...?
(0039001)
kdawgud   
2015-06-29 13:23   
(edited on: 2015-06-29 13:25)
I tried this on a couple computers and get the same results. One has a path > 1300. The other is much shorter around 600.

I also don't see the pop-up: "Warning! PATH too long installer unable to modify PATH!". Everything appears to work fine, but then the path doesn't change.

(0042802)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.