I'm working on a project to upgrade an existing search tool which is in everyones PC tray. In order to upgrade it I have to kill the search tool process, run the upgrade, and then relaunch the tool. The script does all that I need except that a workstation then shows it has TWO of the same ICON in the tray until they physically move their mouse over Icon that was supposed to be closed in the tray.. only then will it disappear.
I've read that a tray refresh function of some type has been posted but can't find it anywhere. Could someone point me to it, or tell me how I can make the icon go away after a process close?
Here's what I have...
#include <Process.au3>
;FILEINSTALL OF THE MSI SOURCE
FileInstall ( "C:\TEMP\employee_search4.msi", "C:\TEMP\employee_search4.msi" )
;STOP EXECUTION OF THE EMPLOYEE SEARCH TOOL
ProcessClose ( "Employee Search.exe")
;EXECUTION OF THE INSTALL SOURCE MSI
RunWait ("msiexec.exe", '/i C:\TEMP\employee_search.msi /qn')
;RELAUNCH OF THE EMPLOYEE SEARCH TOOL AFTER INSTALL
IF @OSArch = "X64" Then
Run ( "C:\Program Files (x86)\IBM\LBPS\Employee Search\Employee Search.exe")
Else
Run ( "C:\Program Files\IBM\LBPS\Employee Search\Employee Search.exe")
EndIf
;CLEANUP
FileDelete ( "C:\TEMP\eployee_search4.msi")