diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-11-09 16:50:21 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2015-11-09 16:50:21 (GMT) |
commit | d3625b72834ab63a2c946c75f7949aaffaf9427c (patch) | |
tree | 3164d16dc8570728fad3d8eab6708668ece8103a /Source/CPack/WiX | |
parent | 0ecb5e7f8b02c96823104ab4b08773dccb12a2c8 (diff) | |
download | CMake-d3625b72834ab63a2c946c75f7949aaffaf9427c.zip CMake-d3625b72834ab63a2c946c75f7949aaffaf9427c.tar.gz CMake-d3625b72834ab63a2c946c75f7949aaffaf9427c.tar.bz2 |
CPackWIX: Don't allow users to deselect the top-level feature (#15838)
The top-level WiX feature implicitly created by the WIX generator
represents the package as a whole.
As such it does not make sense to allow installer users to deselect
it from the installation.
Suggested-by: Mark Stijnman
Diffstat (limited to 'Source/CPack/WiX')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index 6f25e50..d5246db 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -482,6 +482,7 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles() featureDefinitions.BeginElement("Feature"); featureDefinitions.AddAttribute("Id", "ProductFeature"); featureDefinitions.AddAttribute("Display", "expand"); + featureDefinitions.AddAttribute("Absent", "disallow"); featureDefinitions.AddAttribute("ConfigurableDirectory", "INSTALL_ROOT"); std::string cpackPackageName; |