Archive: Registry Question


Registry Question
I have a tricky registry problem and maybe someone will be able to help me

I have a key in the regestry called Swing and under it I have more keys that starts the same but with number in the end, something like this:

Swing
Swing 1
Swing 5.5
Swing 10

What I need is to know how many this second level key are there and what is the names?

Any ideas?


EnumRegKey
See the NSIS User's Manual, section 4.9.2.5 EnumRegKey - this looks like what you need. You will need to write a loop to count how many subkeys there are there.


Thanks, its exactly what I needed (have no idea how I didn't see this command before)