Jump to content


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.
Photo

Tray Application


2 replies to this topic

reportbase

reportbase
  • Members
  • 1 posts

Posted 09 June 2001 - 19:04

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.

Joe Fegan

Joe Fegan
  • Members
  • 38 posts

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.

Ian Blake

Ian Blake
  • Members
  • 483 posts

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;
}