Job_GetProductStatus
Description
Section titled “Description”Returns the installation status that CapaInstaller scripts have recorded on the computer for the package specified in sAppl. The status is read from the computer part of the registry (HKLM), so it reflects computer jobs.
Syntax
Section titled “Syntax”Job_GetProductStatus(sAppl) As Boolean
Parameters
Section titled “Parameters”sAppl (String)
Section titled “sAppl (String)”The product ID of the package. This is the log file name the package passes to Job_Start, without the extension.
Return value
Section titled “Return value”gsValue contains the status. Typical values are:
| gsValue | Meaning |
|---|---|
Installing |
The job is running, or it stopped before Job_End ran. |
Installed |
The last install job succeeded. |
Uninstalled |
The last uninstall job succeeded. |
Failed Install |
The last install job failed. |
Failed uninstall |
The last uninstall job failed. |
Not Compliant |
The package was set to not compliant. |
Cancel |
The job was canceled and will run again later. |
WAITING |
No status is recorded for the package on this computer. |
Example
Section titled “Example”If bStatus Then bStatus = Job_GetProductStatus("Inventory")If bStatus Then bStatus = Job_WriteLog("GetStatus", "The application status is: " & gsValue, bStatus, True)