Skip to main content

Overview

LANCommander supports the use of uninstall scripts for handling any cleanup that may need to occur after the uninstallation of a game from the launcher or SDK. It is recommened to use uninstall scripts to remove any files and registry entries that might have been created from the install process and general execution of the game.

Variables​

When an uninstall script is executed, the following variables are available within the runtime:

NameTypeDescription
$InstallDirectorystringThe install directory the game archive has been extracted to
$GameManifestLANCommander.SDK.GameManifestThe game manifest containing metadata about the game
$BaseInstallDirectorystringThe base game's install directory. Differs from $InstallDirectory for addons installed to a sub directory or their own directory; same as $InstallDirectory for main games
$BaseGameManifestLANCommander.SDK.GameManifestThe base game's manifest; same as $GameManifest for main games
$DefaultInstallDirectorystringThe default install directory as specified in the client
$ServerAddressstringThe source LANCommander server address