Self Update Reference
Installation
gkScript methods:
Install itself to the machine and set an auto-run key to start on every logon.
Self-update an installed client.
gkScript also ensures that the installed client is running as a single instance per logon session.
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
Sample install code:
Last updated