MantisBT - CMake
View Issue Details
0010591CMakeCPackpublic2010-04-22 05:542011-04-04 12:00
Robert Bielik 
David Cole 
normalminoralways
closedduplicate 
CMake-2-8 
CMake 2.8.4 
0010591: For NSIS, CPack erroneously enforces a ..\bin\ folder
On Windows it is customary to have executables installed as:
C:\Program Files\Company\Product\Executable.exe

But CPack enforces the non-customary:
C:\Program Files\Company\Product\bin\Executable.exe

The appending of a bin folder is hardcoded in cmCPackNSISGenerator.cxx (454). Of course it is possible to override the generation of the CPACK_NSIS_CREATE_ICONS variable, but it is not... "clean" :) It should instead be an option via CPACK_PACKAGE_EXECUTABLES in CMakeLists.txt:

SET(CPACK_PACKAGE_EXECUTABLES "bin\\Executable" "The Executable")
No tags attached.
duplicate of 0007828closed David Cole Impossible to create a Nullsoft installer without referencing bin folder 
related to 0007829closed David Cole CPACK_PACKAGE_EXECUTABLES should allow executables from anywhere 
Issue History
2010-04-22 05:54Robert BielikNew Issue
2010-12-14 18:29David ColeAssigned To => David Cole
2010-12-14 18:29David ColeStatusnew => assigned
2010-12-14 18:59David ColeNote Added: 0024121
2010-12-14 18:59David ColeRelationship addedduplicate of 0007828
2010-12-14 18:59David ColeStatusassigned => resolved
2010-12-14 18:59David ColeFixed in Version => CMake 2.8.4
2010-12-14 18:59David ColeResolutionopen => duplicate
2011-01-07 17:39David ColeRelationship addedrelated to 0007829
2011-04-04 12:00David ColeNote Added: 0026047
2011-04-04 12:00David ColeStatusresolved => closed

Notes
(0024121)
David Cole   
2010-12-14 18:59   
Monitor the duplicate bug id if you want to know when it gets fixed...
(0026047)
David Cole   
2011-04-04 12:00   
Closing resolved issues that have not been updated in more than 3 months.