installOnWindows

fun installOnWindows(installerFile: File, onResult: (Boolean, String?) -> Unit)

Installs an MSI file on Windows.

Parameters

installerFile

The MSI file to install.

onResult

Callback (success: Boolean, errorMessage: String?).

requireAdmin

Indicates whether installation must be done in admin mode.