This function prototype is called before the uninstallation begins. 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
Handle to the parent window.
pszInstallDir
Null-terminated string that contains the name of the install directory of the application.
Return Values
codeUNINSTALL_INIT_CONTINUE
Continue with uninstallation.
codeUNINSTALL_INIT_CANCEL
Cancel uninstallation.
Remarks
The Uninstall_Init function prototype is part of Setup.dll, an ISV-created file for custom operations dealing with installation and uninstallation of applications.