How to close the application from systray (while uninstall) - Advanced Installer Community
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

How to close the application from systray (while uninstall)

Hi there,

I have a small systray application, that were added to the autostart and that starts with minimized main window (only icon in systray).
My aim is to close this application before the main uninstaller action will be done.
For this I use a Terminate Proccess action as discribed in http://www.advancedinstaller.com/user-g ... ocess.html
Image
But when I start Uninstaller I see notification
Image
Please let me to know the right way to avoid the notification window (The following application should be closed ...) while uninstalling the application from the systray.
I just think that I forgot something and this should work fine, I have found the similar topics in forum but this still not work for me without this window.

The test app attached.

Thanks in advance!
Vasiliy
Attachments
sysTray.zip
Test app
(130.3 KiB) Downloaded 275 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to close the application from systray (while uninsta

Hi Vasiliy,

Please check the task manager details tab for the correct name of your application's process. This name is case sensitive and you should set the Action Data field exactly. The value you referenced will be resolved to the full path of the application, not to its name. Our article also mentions that the application may require administrative privileges to close. In this case you should schedule it after "Preparing" action group with no impersonation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: How to close the application from systray (while uninsta

Hi Mihai,

Thank you for your response.
Your recomendation helped me. I just changed [#SysTrayApp.exe] on SysTrayApp.exe and now it works!
Thanks again for your help!

Regards
Vasiliy
VAlch
Posts: 18
Joined: Fri Oct 04, 2013 3:03 pm

Re: How to close the application from systray (while uninsta

hum, not working again :(

Return to “Common Problems”