Skip to content

Job_Start

Initialize CapaInstaller script. Create a log, initialize the environment etc. Call it before any other Scripting Library function, and end the script with Job_End.

For computer jobs, the log is created in the Logs folder of the CapaInstaller client directory, by default C:\Program Files\CapaInstaller\Client\Logs\. For user jobs, it’s created in the user’s own CapaInstaller log folder. For the tasks UNINSTALL, POST and CONFIGURE, the task name is added to the log file name, for example CapaInstaller_UNINSTALL.log. Job_End copies the log to the History subfolder when the job ends.

If the CapaInstaller client isn’t installed correctly, the function shows the message CapaInstaller not properly installed, please reinstall. and returns FALSE.

Job_Start(sMode, sJobName, sVersion, sLog, sTask) as Boolean

Installation-mode. Valid values: WS (computer job, runs as the computer) and US (user job, runs as the logged-on user).

Job name

Job version

Log-file name. If you leave out the extension, .Log is added. The file name without the extension is also used as the package’s product ID, for example in Job_GetProductStatus.

Task mode. Valid values: ‘INSTALL’, ‘UNINSTALL’, ‘POST’, ‘CONFIGURE’

If bStatus Then bStatus=Job_Start("WS", "CapaInstaller", "v1.0", "CapaInstaller.log", "INSTALL")

Scripting Guidelines

Job_End Job_SetPlatform Constants Package Property Variables