TWebUpate Status error

I Want to stop WebUpdate process if .inf or web site are not found
Ex:
On webUpdate1.status(Sender: TObject; StatusStr: string;
StatusCode, ErrCode: Integer);

WebUpdate1.autorestart := False;
if ErrCode = ErrControlFileNotFound then
Begin
WebUpdate1.StopConnection;
FormUpd.Close;
end;
What's best to stop webupdate if web or file.inf does not exist ?

Maybe you can call WebUpdate.NewVersionAvailable first before starting the update process?
When there is no .INF file, this should return false.

I Tried it with success

Thank you