I am struggling to get <util:CloseApplication> to work and wondered if
anyone else has got it working (I am using 3.0.4415.0). First, what I
would expect to see is a dialog offering to close my application if it
is still running - is this what it does?
I have added a line like this to my installation:
<util:CloseApplication Id="MyApp" CloseMessage="yes"
Target="MyApp.exe" />
But it doesn't seem to do anything and I still get the normal "File in
use" dialog. Looking at the scheduling of WixCloseApplications it
appears to be happing after the file in use testing.
I have found a posts that suggested adding this:
<InstallUISequence>
<Custom Action="WixCloseApplications" Before="LaunchConditions" />
</InstallUISequence>
<InstallExecuteSequence>
<Custom Action="WixCloseApplications" Before="LaunchConditions" />
</InstallExecuteSequence>
But this gives the error in the install log:
DEBUG: Error 2762: Unable to schedule operation. The
action must be scheduled between InstallInitialize and InstallFinalize.
Anyone got any ideas?
Thanks
Neil
Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users