View Single Post
Old 2nd February 2012, 17:00   #4
ferdhy_raja
Junior Member
 
Join Date: Jan 2012
Posts: 2
sorry i have found this solution
This script looking for value and replace it
and this works fine

${registry::Open} "HKEY_CURRENT_USER\Software\my software" "/K=0 /V=1 /S=0 /B=1 /N='LocalFileName'" $0
StrCmp $0 0 0 loop
MessageBox MB_OK "Error" IDOK close

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

StrCmp $4 '' close
${WordFind} "$3" "settings" "E+2*}" $6
${registry::Write} "HKEY_CURRENT_USER\$1" "$2" "$EXEDIR$6" "$4" $9

goto loop

close:
${registry::Close} "$0"
${registry::Unload}

thanks a lot
ferdhy_raja is offline   Reply With Quote