[CMake] Allow CPack generated WiX installer to set registry key values

Nils Gladitz nilsgladitz at gmail.com
Wed Oct 16 12:53:05 EDT 2013


I think the documentation for CPACK_PACKAGE_INSTALL_REGISTRY_KEY 
predates the WIX generator and therefor might be misleading.

Currently the WIX generator itself does not use it.

You may be able to create a custom WiX template for this though.
This would require some familiarity with WiX itself.
I myself haven't looked into the registry related functionality yet.

Nils

On 16.10.2013 18:14, Evan Zhang wrote:
>
> Hi,
>
> Is there a way to set registry key values after defining the install 
> registry key using "SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "Example 
> Registry Key")"?
>
> I would like to create an installer that actually populates REG_SZ 
> string values under the key.  I am assuming the above value for 
> "CPACK_PACKAGE_INSTALL_REGISTRY_KEY" creates a registry key at 
> HKEY_LOCAL_MACHINE/SOFTWARE/Example Registry Key.  However, I do not 
> see such a registry key being created at that location or at all 
> within the registry hives.  My CPackConfig.cmake file successfully 
> created an .msi installer that will also install the associated dll 
> files to the appropriate places on an end-user system, but the 
> registry key is not being created.  Again, I would ultimately like to 
> set REG_SZ string values under the created key.  Any guidance and 
> support is greatly appreciated!
>
> Thanks,
> Evan
>
>
>
> --
>
> 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://www.cmake.org/mailman/listinfo/cmake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131016/3ff725cd/attachment.htm>


More information about the CMake mailing list