mirror of
https://github.com/reactos/CMake.git
synced 2025-02-21 20:40:44 +00:00
Merge topic 'wix-disabled-components'
ad453f05 CPackWIX: Support CPACK_COMPONENT_<compName>_DISABLED 6f108f84 CPackComponent: Document the *_HIDDEN and *_DISABLED variables
This commit is contained in:
commit
5ec03c93fc
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.
|
@ -75,9 +75,17 @@
|
||||
#
|
||||
# The dependencies (list of components) on which this component depends.
|
||||
#
|
||||
# .. variable:: CPACK_COMPONENT_<compName>_HIDDEN
|
||||
#
|
||||
# True if this component is hidden from the user.
|
||||
#
|
||||
# .. variable:: CPACK_COMPONENT_<compName>_REQUIRED
|
||||
#
|
||||
# True is this component is required.
|
||||
# True if this component is required.
|
||||
#
|
||||
# .. variable:: CPACK_COMPONENT_<compName>_DISABLED
|
||||
#
|
||||
# True if this component is not selected to be installed by default.
|
||||
#
|
||||
# .. command:: cpack_add_component
|
||||
#
|
||||
|
@ -86,6 +86,10 @@ void cmWIXFeaturesSourceWriter::EmitFeatureForComponent(
|
||||
AddAttribute("Display", "hidden");
|
||||
}
|
||||
|
||||
if (component.IsDisabledByDefault) {
|
||||
AddAttribute("Level", "2");
|
||||
}
|
||||
|
||||
EndElement("Feature");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user