We need to find a particular registry subkey and use its name to populate a session property. So far, we have a custom action under InstallUISequence>>Begin which calls a vb script function. Everything works fine if the VB Script sets an arbitrary value on the session property. But writing vbs code to actually access the registry seems fraught with possible compatibility problems that would cause it to fail on the users machine. What do you recommend? Surely this is a common problem and has been solved before.
Concretely, we want to open the following key, HKLM\Software\JetBrains\ReShaper, and then find the name of the next subkey. This will allow us to construct a registry search that will find a key value like HKLM\Software\JetBrains\ReShaper\v4.5\vs2009\installDir where "v4.5" can be any value.