[CMake] CPack WIX examples

jmerkow jmerkow at gmail.com
Tue Sep 23 20:40:33 EDT 2014


Thanks a lot for your help! Those examples are excellent.

I have a follow up questions for creating the installer, though.  We have a
number of registry entries that need to be created for the software to run
in 'release mode'.  In our current system we add registry entries into the
wxs, but I don't see a way to do that with cmake/cpack easily.
We add a few lines, such as:
<Registry Id='regid7' Root='HKLM' Key='Software\proj\proj 2.0'
Name='HomeDir' Action='write' Type='string' Value='[INSTALLDIR]Home' />
We use these registry entries as anchors for the locations for software
assets.

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.

-Jameson



--
View this message in context: http://cmake.3232098.n2.nabble.com/CPack-WIX-examples-tp7588561p7588576.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list