Job_Start
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”Job_Start(sMode, sJobName, sVersion, sLog, sTask) as Boolean
Parameters
Section titled “Parameters”sMode (String)
Section titled “sMode (String)”Installation-mode. Valid values: WS (computer job, runs as the computer) and US (user job, runs as the logged-on user).
sJobName (String)
Section titled “sJobName (String)”Job name
sVersion (String)
Section titled “sVersion (String)”Job version
sLog (String)
Section titled “sLog (String)”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.
sTask (String)
Section titled “sTask (String)”Task mode. Valid values: ‘INSTALL’, ‘UNINSTALL’, ‘POST’, ‘CONFIGURE’
Example
Section titled “Example”If bStatus Then bStatus=Job_Start("WS", "CapaInstaller", "v1.0", "CapaInstaller.log", "INSTALL")Related functions
Section titled “Related functions”Job_End Job_SetPlatform Constants Package Property Variables