Skip to content

Job_GetProductStatus

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.

Job_GetProductStatus(sAppl) As Boolean

The product ID of the package. This is the log file name the package passes to Job_Start, without the extension.

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.
If bStatus Then bStatus = Job_GetProductStatus("Inventory")
If bStatus Then bStatus = Job_WriteLog("GetStatus", "The application status is: " & gsValue, bStatus, True)

Scripting Guidelines

Constants Package Property Variables