LastStatusCode
Variable that is set to the HTTP status code of the most recent download action. The LastStatusCode variable is set by the Download File action, and also by the DownloadArchives action if any parts of the installation package have to be downloaded during installation.
HTTP status codes starting with 2 indicate some form of success, while HTTP status codes starting with 4 or 5 indicate an error. See List of HTTP status codes for further details.
Notes
- InstallMate does not automatically follow HTTP redirections, so HTTP status codes starting with 3 also indicate that the download action was unsuccessful.
- InstallMate resets the LastStatusCode variable to 0 (zero) prior to a download action. Because 0 is not a valid HTTP status code, this value can be used to test if the download action took place at all.
Usage
You can refer to this variable as <LastStatusCode>. In conditional expressions you can omit the brackets and simply use LastStatusCode = 200 as a test for success, or LastStatusCode >= 300 for failure. This variable is automatically set by InstallMate when a download action takes place.