I have a PocketPC logon replacement app developed in eVC++3 which is
installing and working fine.
However, when it is uninstalled it needs to check if it is still
active and prompts the user to disable it. i.e:
codeUNINSTALL_INIT Uninstall_Init(HWND hwndparent,LPCTSTR
pszinstalldir)
{
if (still active)
{
MessageBox(hwndparent, _T("Still active."), _T("App"), MB_OK);
return codeUNINSTALL_INIT_CANCEL;
}
// do clean up ...
}
This works fine the first time. But if you click the 'Remove' button
again in Remove Programs, it goes ahead and removes the whole app
anyway without calling the Uninstall_Init function again?
Is this by design or I am missing something?
Appreciate any help!
Thanks,
Colin