0

From the below registry tree structure, how to get and show the the subkey (3.1.0) from the below path:

SOFTWARE\WOW6432Node\APE\PowerChart\

HKLM
    SOFTWARE
        APE
            PowerChart
                3.1.0

enter image description here

sas
  • 19
  • 4
  • What have you tried so far? – Anders May 20 '19 at 16:26
  • Look at my answer, EnumRegKey, not EnumRegValue. – Anders May 20 '19 at 20:13
  • Do not vandalize your posts. By posting on this site, you've irrevocably granted the Stack Exchange network the right to distribute that content under the [CC BY-SA 4.0 license](//creativecommons.org/licenses/by-sa/4.0/) for as long as it sees fit to do so. For alternatives to deletion, see: [I've thought better of my question; can I delete it?](https://stackoverflow.com/help/what-to-do-instead-of-deleting-question) – Sabito stands with Ukraine Jan 16 '21 at 05:06

1 Answers1

0

Assuming you are using normal 32-bit NSIS you can just enumerate the subkeys if you don't know which exact version you are looking for:

Section
StrCpy $0 0
loop:
  EnumRegKey $1 HKLM "SOFTWARE\APE\PowerChart" $0
  StrCmp $1 "" done
  IntOp $0 $0 + 1
  MessageBox mb_ok "Key: $1"
  Goto loop
done:
SectionEnd
Anders
  • 97,548
  • 12
  • 110
  • 164