Skip to content

MSI_SetRetryValues

Changes how many times and how often MSI_CheckEngineState checks whether Windows Installer is busy before it postpones the job. The default is 30 retries with 60 seconds between them.

The new values apply to the rest of the script, including the automatic check when Shell_Execute runs msiexec.exe. To take effect this function needs to be called before MSI_CheckEngineState()

MSI_SetRetryValues(iRetryCount, iSecondsToWait) As Boolean

How many times should be retried

How long to wait each time, in seconds

If bStatus Then bStatus = MSI_SetRetryValues(45, 90)
If bStatus Then bStatus = MSI_CheckEngineState()

Scripting Guidelines

MSI_CheckEngineState Constants Package Property Variables