autoupgrader CheckUpdateAndWaitResult method
Return to Introduction  Previous page  Next page
Applies to
acAutoUpgrader component.  

Declaration
function CheckUpdateAndWaitResult: Boolean;  

Description
Call CheckUpdateAndWaitResult method to check for the application updates (at the Info-file located at InfoFileURL). However, unlike usual CheckUpdate method, the CheckUpdatesAndWaitResult suspends execution of calling procedure (not entire calling thread) until the Info-file will be read (successfully or not), and continue the execution of code from next line when returns result.  
 
Function returns True if the newer update of your application are available for download, or False, in case if user currently are using latest version or AutoUpgrader unable to download the Info-file for some reason.  
 
tip Use this method if you want to just check whether new version are available without upgrading.  

Example
Delphi:

procedure TForm1.CheckUpdateBtnClick(Sender: TObject);  
begin  
  acAutoUpgrader1.CheckUpdate;  
end;  



C++ Builder:

void __fastcall TForm1::CheckUpdateBtn1Click(TObject *Sender)  
{  
  acAutoUpgrader1->CheckUpdate();  
}  

See also
Abort method; Info-file example;  
AutoCheck and VersionControl properties;  
OnBeginUpgrade, OnNoUpdateAvailable and OnNoInfoFile events.