Uninstall_Init (Compact 7)
A custom installer dll should export the Uninstall_Init. This function will be called before an application is uninstalled. This function can be used for custom operations such as closing the application if it is running.
codeUNINSTALL_INIT Uninstall_Init( HWND hwndParent, LPCTSTR pszInstallDir );
[in] Specifies a handle to the parent window. If the uninstallation is launched from a client that does not have a parent window, the handle will be NULL. If the handle is NULL, do not display any UI.
[in] Reference to a null-terminated string that contains the name of the application installation directory.