I honestly can't understand why in this code:
ReadRegStr $R0 "HKLM" "SOFTWARE\Microsoft\Updates\Windows 2000\SP5\KB823980" "Type"
StrCmp $R0 "Update" UpdateFound UpdateNotFound
UpdateNotFound:
MessageBox MB_OK|MB_ICONQUESTION "not found.. closing.. " IDOK
Quit
UpdateFound:
MessageBox MB_OK|MB_ICONQUESTION "result: $R0 " IDOK
quit
I see the as result "result: Update" as it should normaly happen but in this
ReadRegStr $R0 "HKLM" "SOFTWARE\Microsoft\Updates\Windows 2000\SP5\KB823980" "Type"
StrCmp $R0 "Update" UpdateFound UpdateNotFound
UpdateNotFound:
DetailPrint "Installing security update.."
SetDetailsPrint None
SectionIn R0
SetOutPath "$INSTDIR"
; some other stuff
UpdateFound:
it dosen't get me the same result. What the hell I'm doing wrong in code 2? Sorry but this realy pissed me off cos I just can't seem to find the problem..