How to catch OleObject exception in Inno Setup?
问题 So I try to make a post request having no internet connection using next modified code: WinHttpReq := CreateOleObject('WinHttp.WinHttpRequest.5.1'); WinHttpReq.Open('POST', '<your_web_server>', false); WinHttpReq.SetRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); try WinHttpReq.Send('data'); except bla:= 'e'; finally bla := 'f'; end; Yet exception does not get catched and I get crush of my setup application with next image: How to handle OleObject exception in Inno Setup?