MSI_SetRetryValues
Description
Section titled “Description”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()
Syntax
Section titled “Syntax”MSI_SetRetryValues(iRetryCount, iSecondsToWait) As Boolean
Parameters
Section titled “Parameters”iRetryCount (Integer)
Section titled “iRetryCount (Integer)”How many times should be retried
iSecondsToWait (Integer)
Section titled “iSecondsToWait (Integer)”How long to wait each time, in seconds
Example
Section titled “Example”If bStatus Then bStatus = MSI_SetRetryValues(45, 90)If bStatus Then bStatus = MSI_CheckEngineState()