Skip to content
⌘ NSIS Forum Archive

how to read data and its value from registry

4 posts

gugaliashashank#

how to read data and its value from registry

hi

I want to know how to read the data and the value fo a particular registry key in different variable


I know only the below command

ReadRegStr $2 HKCU "(Software\IPMSG)" ""


but it wont work for getting the data and value in seperate variable
Afrow UK#
Why have you got curved brackets around the registry path?
$2 will contain the value stored in key "" (or (default) in regedit).

Stu
demiller9#
I think you are asking how to read the values in a registry key? Use EnumRegValue in a loop to get the value names, and ReadRegStr or ReadRegDWORD to get the data for the values.

Don
Red Wine#
Also, there is a small tutorial which might help you 🙂