From: Shea Martin Date: 2007-03-22T01:55:05+09:00 Subject: Re: traverse windows registry Shea Martin wrote: > Is there an example of traversing the window registry? I can't seem to > find any documentation on Win32::Registry. The ruby install came with > some docs for Windows::Registry, but that seems to be a different animal... > > THanks, > ~S I have traversal code working. Just simple recursion. But I am having trouble looping over values. An exception is thrown whenever a value of type REG_NONE is found. This prevents me from iterating over other values, due to the exception. Even if I rescue the exception, I am still kicked out of the each_value loop. The problem is that each_value does a read, and read throws the exception if the type is REG_NONE. see win32/registry.rb line 633. Is there anyway around this? Thanks, ~S