Archive: Pulling multiple branch names form the registry


Pulling multiple branch names form the registry
First, I'd like to say that I did try the search, but got all sorts of results that would take forever to sift through. :)

I'm writing an installer that updates/deploys customizations to an already-installed application. The application can have multiple copies of itself installed. So the registry has:

TheProductName
|
|--CustomInstallName1
|
|--CustomInstallName2


I want to populate a drop-down list of those names. Once they pick one, I'll go back to that key and grab its installation path for updating files. I figure this method is the safest since I can almost guarantee getting a valid result.

If there's an easier way to accomplish this scenario, I'm all for it. :)

Never mind. EnumRegKey is the winner.