remove "This feature will be installed when required." from MSI generated by WiX via CPack under an component install
In converting an installer from a NSIS install using CPack to a WiX install. There are a few discrepancies. One is when building an installer that allows for selecting for group/components (using the cpack_add_component_group, and cpack_add_component functions) there is no way to remove the option: This feature will be installed when required.
After reading the information on the web page @ http://www.installsite.org/pages/en/isnews/200102/CustomSetupOptions.htm
It appears to be simple to disable this option, if there is a method to modify the features.wxs file that is generated by CPack. The option AllowAdvertise="no"
needs to be added within this file for each feature that is defined.
A quick grep of the CMake source code appears that a fix would be easy. Simply add a call to:
AddAttribute("AllowAdvertise", "no");
to the functions EmitFeatureForComponentGroup
and EmitFeatureForComponent
in the file: CMake/Source/CPack/WiX/cmWIXFeaturesSourceWriter.cxx