getLastError

getLastError

Returns the most recent nonzero error code.

Method of

Install object

Syntax

int getLastError ();

Parameters

None.

Returns

The most recent nonzero error code. For a list of possible values, see Return Codes.

Description

Use getLastError method to obtain the most recent nonzero error code since initInstall or resetError were called. This method allows you to defer checking for error codes each time you call addFile or addDirectory until the last addFile or addDirectory call. The getLastError method does not return errors from methods that return objects, such as getFolder.

Example

The following example calls getLastError after a series of addFile calls:

addFile("npplug", ...);
addFile("/MS/Shared/ctl3d.dll", ...);
addFile("/NetHelp/royalplug/royalhelp.html",...);
err = getLastError();

Document Tags and Contributors

 Last updated by: Sheppy,