Share via


Uninstall_Init

The Uninstall_Init function is called before an application is uninstalled. This function can be used for custom operations such as closing the application if it is running.

Syntax

codeUNINSTALL_INIT Uninstall_Init(
  HWND hwndParent,
  LPCTSTR pszInstallDir
);

Parameters

  • hwndParent
    [in] Specifies a handle to the parent window.
  • pszInstallDir
    [in] Reference to a null-terminated string that contains the name of the application installation directory.

Return Values

  • codeUNINSTALL_INIT_CONTINUE
    Continue with uninstalling the application.
  • codeUNINSTALL_INIT_CANCEL
    Cancel uninstalling the application.

Remarks

Windows CE Wceload.exe calls this function, which is part of the application setup and uninstall program, Setup.dll. For information about Wceload.exe, see the command-line tools documentation under "Platform Builder" in the MSDN library.

Requirements

Smartphone: Smartphone 2002 and later

OS Versions: Windows CE 3.0 and later
Header: ce_setup.h
Library: None

See Also

codeUNINSTALL_INIT

File and Application Management API Functions

Uninstall_Exit

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.