[Omake] Can registry keys be globbed?
Aleksey Nogin
anogin at hrl.com
Fri Apr 13 09:26:42 PDT 2007
I currently have to do something like:
foreach(version, 8.1 8.0 7.6 7.5 7.4 7.3 7.2 7.1)
foreach(key, HKEY_CURRENT_USER HKEY_LOCAL_MACHINE)
d = $(get-registry $(key), $"SOFTWARE\Foo\"$(version),
ROOT, $(EMPTY))
if $d
FOO_LOCATIONS[] += $(dir $"$d")
export
export
which is kind of annoying and is not fully future-proof (as I am only
guessing which version numbers might be valid).
Is there a better way? Can we implement some sort of ls, find, or glob
for registry?
Aleksey
--
Aleksey Nogin, Research Staff Member
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA
More information about the OMake-Devel
mailing list