[Insight-developers] List Windows registry sub-keys using CMake

Dan Mueller dan.muel at gmail.com
Tue Jun 14 08:28:08 EDT 2011


Hi all,

Just wondering if it is possible to use CMake to list Windows registry sub-keys?

For example I have the following keys:
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.10.2]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.8]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.7]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.4]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.3]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6.1]
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono\\2.6]

Is it possible to perform some form of globbing expression on
    [HKEY_LOCAL_MACHINE\\SOFTWARE\\Novell\\Mono]
to find all the sub-keys e.g. 2.10.2, 2.8, 2.6.7, 2.6.4, 2.6.3, 2.6.1, 2.6?

At the moment I am simply testing known versions (which seems tedious
and is not future proof).

This same question was once asked on the CMake mailing list, but
no-one answered:
    http://www.cmake.org/pipermail/cmake/2009-October/032961.html

Any help is appreciated.

Regards, Dan


More information about the Insight-developers mailing list