On Wed, 29 Jul 2009 20:02:32 -0500 Bob Arnson <b...@joyofsetup.com> 
wrote:
>lambda...@hushmail.com wrote:
>> I want uninstallation to always be able to close my application. 

>
>>   
>
>The WiX CloseApplication element offers the ElevatedCloseMessage 
>attribute to do this.
>
>-- 
>sig://boB
>http://joyofsetup.com/

Thank you! This accomplished the letter, if not the spirit, of what 
I was hoping for:

<util:CloseApplication Id="MyAppFile" Target="myapp.exe" 
ElevatedCloseMessage="yes" RebootPrompt="no" Description="xxx" />
...
<Component Id="MyAppComponent" ...>
  <File Id="MyAppFile" Name="myapp.exe" ... KeyPath="yes" />
</Component>

. If I run the MSI without elevation and click Remove, it still 
says a reboot will be necessary, instead of displaying the "Files 
in Use" dialog for closing applications. The "xxx" Description is 
never used because that dialog is not displayed. However, after 
elevation, near the end of uninstallation, the application is 
silently forced to close. It's not the same user experience as if 
uninstallation would elevate immediately, display the usual close 
application dialog, and succeed right then.

. If I uninstall from "Uninstall or change a program" (Add/Remove 
Programs), it requests elevation but still isn't able to close the 
application from the dialog. It tries, fails, displays an error, 
and asks whether to continue or cancel. If I continue, the 
application then suddenly, silently closes.

So although CloseApplication does ensure that the application is 
closed, the user experience is still rough around the edges. 
Hopefully no one will want to uninstall the application <g>

/a


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to