View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0015838 | CMake | (No Category) | public | 2015-11-09 10:09 | 2016-05-02 08:30 |
|
Reporter | Mark Stijnman | |
Assigned To | Nils Gladitz | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake 3.3.2 | |
Target Version | | Fixed in Version | CMake 3.5 | |
|
Summary | 0015838: CPack WIX generator should set top feature to be mandatory |
Description | The top-level feature that the WIX generator creates, ProductFeature, should be mandatory, and should therefore have attribute Absent="disallow". Otherwise, the user can deselect it, which will also deselect all features below it - including any CPack components that were set to REQUIRED. Besides, it makes no sense to allow the user to install nothing. |
Steps To Reproduce | Run the attached CMakeLists.txt through cmake, then cpack. The resulting .msi will correctly not allow the user to deselect required component 'comp1', but they can still deselect everything by deselecting 'Product'. |
Tags | No tags attached. |
|
Attached Files | CMakeLists.txt [^] (192 bytes) 2015-11-09 10:09 [Show Content] [Hide Content]file(WRITE 1.txt "1")
install(FILES 1.txt DESTINATION bin COMPONENT comp1)
set(CPACK_COMPONENT_COMP1_REQUIRED TRUE)
set(CPACK_GENERATOR WIX)
set(CPACK_COMPONENTS_ALL comp1)
include(CPack)
|
|