CPackWIX: Support patching of root <Feature> elements.
This commit is contained in:
parent
8f38b8a443
commit
b0852ebc09
|
@ -148,8 +148,10 @@
|
||||||
# Currently fragments can be injected into most
|
# Currently fragments can be injected into most
|
||||||
# Component, File and Directory elements.
|
# Component, File and Directory elements.
|
||||||
#
|
#
|
||||||
# The special Id ``#PRODUCT`` can be used to inject content
|
# The following additional special Ids can be used:
|
||||||
# into the ``<Product>`` element.
|
#
|
||||||
|
# * ``#PRODUCT`` for the ``<Product>`` element.
|
||||||
|
# * ``#PRODUCTFEATURE`` for the root ``<Feature>`` element.
|
||||||
#
|
#
|
||||||
# The following example illustrates how this works.
|
# The following example illustrates how this works.
|
||||||
#
|
#
|
||||||
|
|
|
@ -474,6 +474,7 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles()
|
||||||
|
|
||||||
featureDefinitions.AddAttribute("Title", cpackPackageName);
|
featureDefinitions.AddAttribute("Title", cpackPackageName);
|
||||||
featureDefinitions.AddAttribute("Level", "1");
|
featureDefinitions.AddAttribute("Level", "1");
|
||||||
|
this->Patch->ApplyFragment("#PRODUCTFEATURE", featureDefinitions);
|
||||||
|
|
||||||
const char* package = GetOption("CPACK_WIX_CMAKE_PACKAGE_REGISTRY");
|
const char* package = GetOption("CPACK_WIX_CMAKE_PACKAGE_REGISTRY");
|
||||||
if(package)
|
if(package)
|
||||||
|
|
Loading…
Reference in New Issue