Skip to content

Job_Webreport

Copies the job log to the web report folder, so you can collect the logs from many computers in one place.

The web report folder is set by the WebLogRoot value under HKLM\SOFTWARE\CapaSystems\CapaInstaller on the computer. The log is copied to <WebLogRoot>\<job name>\<job version>\ as <computer name>_Success.Log or <computer name>_Failed.Log, depending on the value of bJobStatus. An older success or failed log for the same computer is deleted first. If WebLogRoot isn’t set, the function writes a line to the log and does nothing else. If WebLogRoot is a network share, the account that runs the job must have write access to it. For computer jobs, that’s the computer account.

When WebLogRoot is set, Job_End calls Job_WebReport automatically, so you normally don’t need to call it yourself.

Job_WebReport(bJobStatus) As Boolean

Current job-status when reporting

bStatus = Job_WebReport(bStatus)

Scripting Guidelines

Job_ReportStatus Constants Package Property Variables