Section /o "Search and write founded in text file" SearchAndWriteInFile
StrCpy $R0 HKEY_CURRENT_CONFIG
${registry::Open} "$R0" "/K=0 /B=1" $0
StrCmp $0 -1 0 loop
MessageBox MB_OK "Error" IDOK close
loop:
${registry::Find} $1 $2 $3 $4
StrCmp $4 '' close
WriteINIStr 'C:\filename.ini' '$R0\$1\$2' '$2' '$3'
goto loop
close:
${registry::Close}
${registry::Unload}
FileClose $R1
Exec '"notepad.exe" "C:\filename.ini"'
SectionEnd
Like this?