from http://www.htmlexe.com/help/scriptreference.htm, use these two HEScript macros:
function ReadRegStr(Root: Integer; Key,Ident,Default: String): String;
procedure WriteRegStr(Root: Integer; Key,Ident,Value: String);
For instance, to read a value and store it in a global variable (whose name is mykey):
Code:
procedure ReadRegistry;
var
S: String;
begin
S := ReadRegStr(HKEY_CURRENT_USER, "Software\My Key", "Identifier", "");
SetGlobalVar("mykey", S, False);
end;