MantisBT - CMake
View Issue Details
0015838CMake(No Category)public2015-11-09 10:092016-05-02 08:30
Mark Stijnman 
Nils Gladitz 
normalminorhave not tried
closedfixed 
CMake 3.3.2 
CMake 3.5 
0015838: CPack WIX generator should set top feature to be mandatory
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.
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'.
No tags attached.
txt CMakeLists.txt (192) 2015-11-09 10:09
https://public.kitware.com/Bug/file/5569/CMakeLists.txt
Issue History
2015-11-09 10:09Mark StijnmanNew Issue
2015-11-09 10:09Mark StijnmanFile Added: CMakeLists.txt
2015-11-09 10:16Nils GladitzAssigned To => Nils Gladitz
2015-11-09 10:16Nils GladitzStatusnew => assigned
2015-11-10 09:36Nils GladitzNote Added: 0039856
2015-11-10 09:36Nils GladitzStatusassigned => resolved
2015-11-10 09:36Nils GladitzFixed in Version => CMake 3.5
2015-11-10 09:36Nils GladitzResolutionopen => fixed
2015-11-10 10:26Mark StijnmanNote Added: 0039858
2016-05-02 08:30Robert MaynardNote Added: 0040957
2016-05-02 08:30Robert MaynardStatusresolved => closed

Notes
(0039856)
Nils Gladitz   
2015-11-10 09:36   
Fixed in master: https://cmake.org/gitweb?p=cmake.git;a=commit;h=d3625b72 [^]
(0039858)
Mark Stijnman   
2015-11-10 10:26   
Thanks, it works as expected now.
(0040957)
Robert Maynard   
2016-05-02 08:30   
Closing resolved issues that have not been updated in more than 4 months.