View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009148 | CMake | CPack | public | 2009-06-12 18:55 | 2011-05-02 14:45 | ||||
Reporter | Cory W Quammen | ||||||||
Assigned To | David Cole | ||||||||
Priority | low | Severity | tweak | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | ||||||
Summary | 0009148: Cannot change default program installation directory with NSIS generator | ||||||||
Description | The NSIS.template.in file provides no way to change the default root program installation directory. This line shows why: InstallDir "$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@" $PROGRAMFILES is taken from the environment variable ProgramFiles in Windows and typically evaluates to C:\Program Files on most systems. It would be nice to change $PROGRAMFILES to another CPack variable, something like CPACK_PACKAGE_INSTALL_DIRECTORY_ROOT. The default value of this variable should be $PROGRAMFILES to preserve the current behavior. Lines 28 and 900 in revision 1.36 of /Modules/NSIS.template.in are relevant to this request. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0018937) David Cole (manager) 2009-12-16 19:24 |
The title of this issue is worded a little too strongly: "*Cannot* change default program installation directory with NSIS generator" There is a way you can do it, at least as a workaround until this issue is addressed... Make your own copy of the NSIS.template.in file Put it in a directory named "${CMAKE_CURRENT_SOURCE_DIR}/CMake" Make edits to your own NSIS.template.in file as needed Put this in your CMakeLists.txt file: set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH}) Voila. CPack will now use your NSIS.template.in file instead of the built-in one. |
(0024531) David Cole (manager) 2011-01-10 10:10 |
Fixed by this commit, just pushed to 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=5c3b0c1f4c2d00cc3adf036c5ff05917cea84cd7 [^] Should make it into 2.8.4... |
(0026327) David Cole (manager) 2011-05-02 14:45 |
Closing resolved issues that have not been updated in more than 3 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-06-12 18:55 | Cory W Quammen | New Issue | |
2009-09-14 14:50 | Bill Hoffman | Status | new => assigned |
2009-09-14 14:50 | Bill Hoffman | Assigned To | => David Cole |
2009-12-16 19:24 | David Cole | Note Added: 0018937 | |
2009-12-16 19:25 | David Cole | Priority | normal => low |
2010-12-17 07:41 | David Cole | Target Version | => CMake 2.8.4 |
2011-01-10 09:40 | David Cole | Relationship added | related to 0009094 |
2011-01-10 10:10 | David Cole | Note Added: 0024531 | |
2011-01-10 10:10 | David Cole | Status | assigned => resolved |
2011-01-10 10:10 | David Cole | Fixed in Version | => CMake 2.8.4 |
2011-01-10 10:10 | David Cole | Resolution | open => fixed |
2011-05-02 14:45 | David Cole | Note Added: 0026327 | |
2011-05-02 14:45 | David Cole | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |