LastError Method
InstallShield 2022
Project:This information applies to InstallScript projects.
This is the LastError method of the Player object. This is an integer value containing the error code for an error thrown by a method of the Player, usually Open().
Syntax
var nError = player.LastError;
Example
var ether = Player.Open("http://www.installshield.com")
Parameters
None.
Return Values
Return Code |
Description |
-2147186688 |
No permissions were granted. Clicking Deny on the Java Security dialog throws this error. |
-2147186686 |
Failed to update or install the Setup Player ActiveX control. Verify your ability to download from the URL specified in the Codebase attribute of the APPLET tag. |
-2147186685 |
Failed to instantiate ISPlayer or initialization of the ISPlayer failed. |
-2147186684 |
Failed to call player.Open. |
-2147186683 |
Player.Open call timed out waiting for applet initialization. |
-2147166892 |
Requested URL not found. Verify that your installation files are available at the URL specified during the player.Open call. |
-2147166895 |
Unable to access protected resource. This error is returned when attempting to access an installation that requires authentication and the end user does not enter the correct information. |
-2147012889 |
The server name could not be resolved. Verify that the URL used in your player.Open call. Misspelling the domain name the URL is a common cause of this error. |
Note:For the first six errors listed, the end user can check the Java console for detailed error information.