如何使用 NSIS 从注册表树中的键中获取子键?
How to get the subkey from the key in the registry tree using NSIS?
从下面的注册表树结构中,如何从下面的路径获取和显示子项 (3.1.0):
SOFTWARE\WOW6432Node\APE\PowerChart\
HKLM
SOFTWARE
APE
PowerChart
3.1.0
假设您使用的是普通的 32 位 NSIS,如果您不知道要查找的确切版本,则可以枚举子项:
Section
StrCpy [=10=] 0
loop:
EnumRegKey HKLM "SOFTWARE\APE\PowerChart" [=10=]
StrCmp "" done
IntOp [=10=] [=10=] + 1
MessageBox mb_ok "Key: "
Goto loop
done:
SectionEnd
从下面的注册表树结构中,如何从下面的路径获取和显示子项 (3.1.0):
SOFTWARE\WOW6432Node\APE\PowerChart\
HKLM
SOFTWARE
APE
PowerChart
3.1.0
假设您使用的是普通的 32 位 NSIS,如果您不知道要查找的确切版本,则可以枚举子项:
Section
StrCpy [=10=] 0
loop:
EnumRegKey HKLM "SOFTWARE\APE\PowerChart" [=10=]
StrCmp "" done
IntOp [=10=] [=10=] + 1
MessageBox mb_ok "Key: "
Goto loop
done:
SectionEnd