A version of this page is also available for

Windows Embedded CE 6.0 R3


A custom installer dll should export the Install_Exit function. This function will be called after an application is installed. This function can be used for custom operations such as handling errors that occurred during installation or launching of the application. For more information, see Optional Setup.dll Files for Installation.


codeINSTALL_EXIT Install_Exit(
  HWND hwndParent,
  LPCTSTR pszInstallDir,
  WORD cFailedDirs,
  WORD cFailedFiles,
  WORD cFailedRegKeys,
  WORD cFailedRegVals,
  WORD cFailedShortcuts


  • hwndParent
    [in] Specifies a handle to the parent window.
  • pszInstallDir
    [in] Reference to a null-terminated string that contains the name of the final installation directory.
  • cFailedDirs
    [in] Specifies the number of directories that failed to be created.
  • cFailedFiles
    [in] Specifies the number of files that failed to be created.
  • cFailedRegKeys
    [in] Specifies the number of registry keys that failed to be created.
  • cFailedRegVals
    [in] Specifies the number of registry values that failed to be created.
  • cFailedShortcuts
    [in] Specifies the number of shortcuts that failed to be created.

Return Value

    The application installation is exited successfully.
    The application is uninstalled before exiting the installation.


This function is called during installation once the installation process has been completed.


Header ce_setup.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also


File and Application Management Functions