Archive: how to read data and its value from registry


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


Why have you got curved brackets around the registry path?
$2 will contain the value stored in key "" (or (default) in regedit).

Stu


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


Also, there is a small tutorial which might help you :)

http://nsis.sourceforge.net/Reading_..._makes_it_easy