Class InstallerApplicationSessionBuilder


public final class InstallerApplicationSessionBuilder extends InstallationDirectorySessionBuilder
Builds and starts an InstallerApplicationSession for a custom installer application.
try (InstallerApplicationSession session = InstallerApplicationSessionBuilder
        .forInstallation(installedDir)
        .applicationId("licenseRenewal")
        .start()) {
    session.currentScreen().clickNext();
    ...
}

The installer and uninstaller have their own builders, see InstallerSessionBuilder and UninstallerSessionBuilder.

Kotlin extensions

SessionExtensions.kt in this package adds useSession { ... } as a Kotlin inline extension: it calls start(), runs the trailing lambda on the resulting InstallerApplicationSession as this, and closes the session afterwards.