Assuming util:CloseApplication finds the app (a "window" owned by the app must be enumerable using the EnumWindows() WIN32-API), the app must be written to shutdown when windows found using that API receive WM_CLOSE messages (and CloseApplication won't even attempt to even send that message unless the CloseMessage attribute is turned on).
If your app requires a more aggressive approach to shutdown (such as apps that "minimize to the sys tray" or other such nonsense when they receive a WM_CLOSE instead of exiting) you will need your own custom action to shut them down. Once again, Restart Manager (not available in XP) is better at this, but this is part of the reason for the difference. -----Original Message----- From: little.forest [mailto:little.for...@ymail.com] Sent: Wednesday, August 04, 2010 2:50 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] FileInUse doesn't work in XP? Thanks Travis for your reply. Yes, we tried CloseApplication, but it doesn't help. ________________________________ From: Travis Gaff <tra...@pc-doctor.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Wed, August 4, 2010 2:08:07 PM Subject: Re: [WiX-users] FileInUse doesn't work in XP? I think we found similar issues. The RMFilesInUse behavior is different in XP vs. Windows 7 and possibly in Vista as well. We ended up adding several custom actions to try to stop our executables both with and without elevation. You can try the WiX util:CloseApplication to get started, but we found that it wasn't sufficiently aggressive in stopping our application. Travis -----Original Message----- From: little.forest [mailto:little.for...@ymail.com] Sent: Wednesday, August 04, 2010 1:38 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] FileInUse doesn't work in XP? Our QA found an issue: during uninstallation, if our app is minimized in systray, the FileInUse dialog doesn't show up. That will cause crash when the end user tries to activate and run the app - as the app is already uninstalled. I tried it, in Windows 7, it works fine - I did see the FileInUse dialog showing up. But in XP, the FileInUse dialog didn't show. I found this post: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/FileInUse-an d-MsiRMFilesInUse-dialogs-td4430290.html#a4430934 Does it mean the "FileInUse doesn't work in XP" is the expected behavior? If so, is there anything I could do to make it work in XP? Our QA(and PM) is after me for this issue. I own them an explanation. -------------------------------------------------------------------------- ---- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users