Thread: Registry plugin
View Single Post
Old 20th April 2006, 11:19   #64
rxs2k5
Member
 
Join Date: Apr 2006
Posts: 66
Quote:
Section /o "Search and write founded in text file" SearchAndWriteInFile
StrCpy $R0 HKEY_CURRENT_User
StrCpy $R1 HKEY_Local_ Machine

${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
1.
If u look at the example above the HKEY_CURRENT_User which will be written into the filename.ini takes a long time to search since it will scan the entire registry on HKEY_CURRENT_User is there anyway to define it to search the material much faster and direct.

2. HKEY_CURRENT_User "Software\blah" "search string value" " string value data " is this possible to direct a search rather than a full scan of the HKEY_CURRENT_User.

3. this will be read by ReadINIStr afterwards when the search is being done since ReadINIStr requires section_name entry_name. Is there a possibility that your registry plugin can arrange this to fit into the search in ReadINIStr like this
ReadINIStr $0 $Temp\filename.ini example1 cool on the later part.


thanks again for replying
rxs2k5 is offline   Reply With Quote