Table of Contents

TTMSFNCCustomAppUpdate Class

Base class that checks a remote control file for available updates, downloads the changed files, applies them, and optionally restarts the application.

API unit family: TMSFNCAppUpdate Inherits from: TTMSFNCCustomComponent

Syntax

TTMSFNCCustomAppUpdate = class(TTMSFNCCustomComponent)

Remarks

The component compares the local installation against the remote control file using a version string, the file version embedded in the binary, the file size, or a CRC checksum. Use the published descendant for design-time use; this base class exposes the same surface as protected members so it can be customized.

Properties

Name Description
FileList Collection of files evaluated and downloaded during the update.

Methods

Name Description
DoUpdate Checks for an available update and, when one is found, prompts the user with the configured confirmation message before starting the update; starts immediately when no message is configured.
Log Writes a custom message to the configured log.
NewVersionAvailable Downloads the control file and determines whether a newer version is available for the local installation.
StartUpdate Starts the update process, downloading and applying the changed files and restarting the application when required.