DesktopInstaller
The DesktopInstaller
class is responsible for handling the installation of applications on desktop operating systems such as Windows, Linux, and macOS. This class implements the AppInstaller
interface and provides platform-specific installation logic for each supported operating system.
Functions
Determines whether the application can request permission to install packages depending on the operating system being used.
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.
Requests the necessary permission to install packages based on the detected operating system.
Uninstalls the actual application from the device.
Uninstalls an application based on the provided package name.