WIX: The following application should be closed before continuing the install

3.8k views Asked by At

my application have tray icon. when i uninstall it i have window with the proposal to close the "my_tray_app.exe" - with text: ("The following application should be closed before continuing the install")

i'm use wix "CloseApplication Element (Util Extension)" to close "my_tray_app.exe" win close app

HOW TO AVOID THIS WINDOW??

i try play with CloseApplication attributes - but don't have result... oO

2

There are 2 answers

2
Space Rabbit On BEST ANSWER

i'm use wxWidgets and use following method to close my "TrayApp.exe":

<util:CloseApplication Id="CloseApp" CloseMessage="yes" Target="TrayApp.exe" RebootPrompt="no" />

<Custom Action="WixCloseApplications" Before="RemoveFiles" />

but "TrayApp.exe" stay on taskmanager and stay on system tray!

if i try close other tray app (for example "Skype.exe") all work fine and my uninstaller closes "Skype.exe" and remove from system tray.

may be i must add some code to my project?

  • i try use taskkill.exe - but "TrayApp.exe" removing from taskmanager but stay on system tray until i move the mouse pointer to tray icon.
0
123r789 On

To close the Trayapp at the time of uninstall you need to write a custom action with taskkill.exe.This custom action will kill the Trayapp and then uninstall the application.