I have an application that loads itself into the tray. How do I close it manuallly from an MSI file upgrade installation. I would like to send the WM_CLOSE message to it. Is there an easy way to do this.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Tray Application
Started by
reportbase
, Jun 09 2001 19:04
2 replies to this topic
Posted 11 June 2001 - 15:05
I don't think the installer can do this for you itself. You will need to write a small standalone program that does what you want then include it as a custom action in the installer project.
Posted 12 June 2001 - 09:08
A simple custom action along these lines is all you need.
UINT _stdcall StopTheWindow(MSIHANDLE hInstaller)
{
HWND hWindow;
hWindow = FindWindow(WC_DIALOG, "The Window Name");
if (hWindow)
{
PostMessage(hWindow, WM_CLOSE, 0, 0);
}
return ERROR_SUCCESS;
}