installApp

open suspend override fun installApp(appFile: File, onResult: (Boolean, String?) -> Unit)

Installs a given application file based on the detected operating system. The method supports multiple platforms (Windows, Linux, Mac) and uses platform-specific installation mechanisms. If the operating system is unsupported, the installation fails with an appropriate message.

Parameters

appFile

The application file to be installed.

onResult

A callback that provides the result of the installation. The first parameter indicates success or failure (Boolean). The second parameter contains an optional error message (String?).