Skip to main content
Table of Contents

Getting started with TMS FNC App Update

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • TMS FNC AppTools installed.
  • A remote server hosting a control file that describes available update files.

Add the component

  1. Drop TTMSFNCAppUpdate from the palette onto a form.
  2. Set URL to the remote URL of your update control file.
  3. Optionally set Elevate to True if applying updates requires administrative privileges.

Check for a new version

Check for a new versionPascalC++
{ Inside a button click or application startup handler: }
if AppUpdate1.NewVersionAvailable then
  AppUpdate1.StartUpdate;
// Inside a button click or application startup handler:
if (AppUpdate1->NewVersionAvailable())
  AppUpdate1->StartUpdate();

React to download progress

React to download progressPascalC++
procedure TForm1.AppUpdate1OnFileProgress(Sender: TObject;
  const AFile: TTMSFNCAppUpdateFile; AProgress: Integer);
begin
  ProgressBar1.Value := AProgress;
end;
void __fastcall TForm1::AppUpdate1OnFileProgress(TObject *Sender,
  System::UnicodeString FileName, __int64 Pos, __int64 Size)
{
  if (Size > 0)
    ProgressBar1->Value = (double)Pos * 100.0 / (double)Size;
}

Next steps

  • Guides — control file format, elevation, custom version comparison, and logging.
  • API reference — full class reference.