Self Update Reference
Last updated
Last updated
string gkScript::getVersion()
Version string of the current client-xxx.exe / chaiCmd-xxx.exe module
string gkScript::moduleFilename(bool fullPath = false)
Module file name of the current client-xxx.exe / chaiCmd-xxx.exe module.
int gkScript::getPID()
Process ID of the current instance.
bool gkScript::isInstalled()
- Returns false for chaiCmd-xxx.exe - Returns true if client-xxx.exe is present in the target path
bool gkScript::isInstalledInstance()
- Returns false for chaiCmd-xxx.exe - Returns true if client-xxx.exe was started from install-path
bool gkScript::setupClient(bool install)
- Will install itself or deinstall the client
- Will fail if current module is chaiCmd-xxx.exe
- Will fail of isInstalledInstance() == true
string gkScript::installPath()
Returns the installation path