Thanks Cody and Peter. I was unaware of CloseApplication (I'm new to Wix and still getting my feet wet) but just tried it, and just verified that it has the behavior Cody described (target app is sent a WM_CLOSE message), which is NOT the desired behavior I want (which is to prompt the user to either close the application or abort the install), so I'll go and implement a custom action. It's a shame this isn't already in Wix as this seems like a pretty common thing to do.
Again, thanks for the help. Jeff > I'm not the original person posing the question... but I did try that when > I > wanted the functionality that Jeff is asking for. The problem I ran into > with the CloseApplication element is that it would either forcefully close > the application or schedule a reboot. It would not kindly prompt the user > to > close the application, allowing the user the save his work in progress and > close it at his leisure. I prefer the CA that I implemented to kindly > prompt > the user to close the running application. > > Cody > > -----Original Message----- > From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] > Sent: Wednesday, March 10, 2010 10:26 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Preventing install if application is running > > See CloseApplication Element (Util Extension) in the Util Schema section > of the Wix help. > > -----Original Message----- > From: s...@pacaccess.com [mailto:s...@pacaccess.com] > Sent: 10 March 2010 00:59 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Preventing install if application is running > > I wish to add a feature to my installer which detects if a certain > application is running, and then presents the user with a message asking > them to quit all instances of the application or abort installation. > I'm new to wix development, but I've searched on this subject and > although I've seen a few messages asking about this type of > functionality, I haven't seen any finished solutions on how to do this > so I have a few > questions: > > -Some of the postings I've read have said that in v2 a custom action was > needed, but in v3 there is something like this built in. If so, what is > it? I haven't been able to find it. Is there something like this built > into v3? (That's the version I'm using) > > -If there isn't anything which checks for running applications already > built into wix v3.0, I can write my own custom action, but before I do, > has anyone already written a 'check for running application' custom > application? If there is I don't want to reinvent the wheel. > > -I'm new to wix but I have read the docs (or at least some of them). It > seems like what I'm trying to do would fall into the "standard custom > action" category, yet I don't see anything listed on the standard custom > actions page > (http://wix.sourceforge.net/manual-wix3/standard_customactions.htm). > > If anyone can suggest some tips on where to look, I'd appreciate it. If > I can't find anything I'll write my own custom action, but if something > like this already exists I'd prefer to use something that already works. > > Thanks, > > Jeff > > > > > ------------------------------------------------------------------------ > ------ > Download Intel® Parallel Studio Eval Try the new software tools for > yourself. Speed compiling, find bugs proactively, and fine-tune > applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > </pre> > <BR style="font-size:4px;"> > <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email > logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> > <BR> > <font face="arial" size="2" "><a href = "http://www.sdl.com" > style="color:005740; font-weight: bold">www.sdl.com</a> > <BR> > <BR> > <font face="arial" size="1" color="#736F6E"> > <b>SDL PLC confidential, all rights reserved.</b> > If you are not the intended recipient of this mail SDL requests and > requires > that you delete it without acting upon or copying any of its contents, and > we further request that you advise us.<BR> > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207.<BR> > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, UK. > </font> > > > > ---------------------------------------------------------------------------- > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users