Thread: Registry plugin
View Single Post
Old 20th April 2006, 07:25   #60
rxs2k5
Member
 
Join Date: Apr 2006
Posts: 66
Instructor excellent plugin, thanks for your contributions.

This could at least worked out a bit to find the correct keys to change a setoutpath

btw
Quote:
Section /o "Search and write founded in text file" SearchAndWriteInFile
GetTempFileName $R0
FileOpen $R1 $R0 w
FileWrite $R1 'HKEY_CURRENT_CONFIG$\r$\n$\r$\n'

${registry::Open} "HKEY_CURRENT_CONFIG" "/B=1" $0
StrCmp $0 -1 0 loop
MessageBox MB_OK "Error" IDOK close

loop:
${registry::Find} $1 $2 $3 $4

StrCmp $4 '' close
StrCmp $4 'REG_KEY' 0 +3
FileWrite $R1 '$4:"$1\$2"$\r$\n'
goto +2
FileWrite $R1 '$4:"$1" "$2"="$3"$\r$\n'
goto loop

close:
${registry::Close}
${registry::Unload}
FileClose $R1

Exec '"notepad.exe" "$R0"'
SectionEnd
In the example u provided, about the search and write found, how can I able to make it search and write the searched registry into a filename.ini
rxs2k5 is offline   Reply With Quote