Search code examples
wixwindows-installeruninstallationclose-application

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


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


Solution

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