mirror of
https://github.com/reactos/CMake.git
synced 2025-01-08 04:00:27 +00:00
CPackWIX: Support CPACK_COMPONENT_<compName>_DISABLED
Reviewed-by: Nils Gladitz <nilsgladitz@gmail.com>
This commit is contained in:
parent
6f108f84d0
commit
ad453f0502
6
Help/release/dev/wix-disabled-components.rst
Normal file
6
Help/release/dev/wix-disabled-components.rst
Normal file
@ -0,0 +1,6 @@
|
||||
wix-disabled-components
|
||||
-----------------------
|
||||
|
||||
* The CPack WIX generator now supports
|
||||
:variable:`CPACK_COMPONENT_<compName>_DISABLED`.
|
||||
This can be used to deselect a component from being installed by default.
|
@ -86,6 +86,10 @@ void cmWIXFeaturesSourceWriter::EmitFeatureForComponent(
|
||||
AddAttribute("Display", "hidden");
|
||||
}
|
||||
|
||||
if (component.IsDisabledByDefault) {
|
||||
AddAttribute("Level", "2");
|
||||
}
|
||||
|
||||
EndElement("Feature");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user