On 24.09.2014 02:40, jmerkow wrote:
It seems the best way to do this would be to override the template with a
number of configurable entries?
So I could add something like (there's about 15 of em):
<Registry Id='regid7' Root='HKLM' Key='Software\@proj_name@\@proj_name@
@proj_FULL_VERSION@' Name='HomeDir' Action='write' Type='string'
Value='[INSTALL_ROOT]@home_path@' />
I wanted to check to see if there was a way to handle this directly from
CMake.
The <Registry> elements will require a <Component> parent and that
component needs to be referenced by an existing feature.
I've used CPACK_WIX_PATCH_FILE (e.g. the fragment_injection example) to
insert similar content into existing components.
The patch file could also be configured by configure_file().
If you need this to be an independent <Component> I suppose you could
use your own template,
add the <Component> (and its <Registry> childen) to the <Product>
element and add a reference
to it from within the existing <FeatureRef Id="ProductFeature"/> element.
Nils
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake