CPackWIX: Support CPACK_COMPONENT_<compName>_DISABLED

Reviewed-by: Nils Gladitz <nilsgladitz@gmail.com>
This commit is contained in:
Michael Stürmer 2016-07-21 16:34:35 +02:00 committed by Nils Gladitz
parent 6f108f84d0
commit ad453f0502
2 changed files with 10 additions and 0 deletions

View 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.

View File

@ -86,6 +86,10 @@ void cmWIXFeaturesSourceWriter::EmitFeatureForComponent(
AddAttribute("Display", "hidden"); AddAttribute("Display", "hidden");
} }
if (component.IsDisabledByDefault) {
AddAttribute("Level", "2");
}
EndElement("Feature"); EndElement("Feature");
} }