Load_AlreadyInstalled

The Load_AlreadyInstalled function determines whether the application has already been installed on a device.

Syntax

BOOL Load_AlreadyInstalled(LPSTR lpszAppName);

At a Glance

Header file: Ppcload.h
Platforms: H/PC
Windows CE versions: 1.0 and 1.01

Parameters

lpszAppName
Pointer to string passed in to the Load_AlreadyInstalled function with the name of your application.

Return Values

This function returns one of the following values:

TRUE
The application is currently installed, or an error occurred.
FALSE
The application is not currently installed.

Remarks

The Load_AlreadyInstalled function requires a prior successful call to the Load_Init function.

Load_AlreadyInstalled is exported by Ppcload.dll, which runs on the desktop PC—it is intended to be called from a setup program.

If an error occurred during this function, it returns TRUE, so that the caller can prevent accidental overwriting.

The application must have been installed using the Application Loader before this function acknowledges that it has been installed. If the application was put on the device using the H/PC Explorer drag-and-drop method, Load_AlreadyInstalled will not find the application.

This function is not supported on Windows CE version 2.0. For more information on installing applications for version 2.0, see Installing Applications.

See Also

Load_Init