Checks and clears the error flagAs far as I can tell, it does not clear the error flag. 🙁 Here's a small script that demonstrates this:
Name "iferrors bug?"
OutFile "iferrors.exe"
ShowInstDetails nevershow
AutoCloseWindow true
Section "one"
ClearErrors
ReadRegStr $1 HKCR "software\microsoft" shit
IfErrors 0 NoError
#ClearErrors ;HAVE TO CLEAR ERROR FLAG, OTHERWISE IT PERSISTS!
MessageBox MB_OK "could not read from HKCR\software\microsoft\shit"
Goto ErrorYay
NoError:
MessageBox MB_OK "read '$1' from HKCR\software\microsoft\shit"
ErrorYay:
SectionEnd
Section "two"
IfErrors 0 NoError
MessageBox MB_OK "error in section two!!"
Goto ErrorYay
NoError:
MessageBox MB_OK "no errors in section two"
ErrorYay:
SectionEnd If ClearErrors is used to manually clear the error flag, that seems to work.I hope I'm not just confused/hallucinating. 🙁
Somebody please confirm this is a bug or let me know where i've gone wrong. 🧟 i'm using the latest development snapshot.
thanks
Salaam/Peace