i wrote a custom uninstall DLL to decrement a registry key.The method to
decrement the key (DecUseCountKey()) will be called in
UninstInitialize.
Everything works fine, if i do it like this:
LONG APIENTRY UninstInitialize(HWND hwndDlg,HANDLE hInstance,LONG lRes)
{
MessageBox(NULL, "Test", "Test", MB_OK);
DecUseCountKey();
return(0);
}
If i´m going to omit the MessageBox(...) call, the registry key will not be
decremented.
The uninstall entry in the registry is correct, because the message box
comes up, if i´m doing the MessageBox call.
I also have tried to debug the dll, therefore called "IsUn0407.exe" with the
uninstallation registry arguments and it works without the
MessageBox(...) call in VC++ 6.0
It doesn`t work also, if called from a DOS Box command line without the
MessageBox(...) call.
Has anyone an idea?
OS is WIN2000 (not testet on other platforms).
Thanks in advance
Gino