[cmake-developers] [CMake 0015635]: CPACK_NSIS_MODIFY_PATH has no affect on PATH variable

Mantis Bug Tracker mantis at public.kitware.com
Mon Jun 29 09:18:26 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15635 
====================================================================== 
Reported By:                kdawgud
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15635
Category:                   (No Category)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-06-29 09:18 EDT
Last Modified:              2015-06-29 09:18 EDT
====================================================================== 
Summary:                    CPACK_NSIS_MODIFY_PATH has no affect on PATH
variable
Description: 
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.

Steps to Reproduce: 
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 http://www.cmake.org/Bug/view.php?id=5 holds true.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-06-29 09:18 kdawgud        New Issue                                    
======================================================================



More information about the cmake-developers mailing list