|
From: Neil S. <ne...@x2...> - 2008-08-19 10:03:49
|
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
ne...@x2... <mailto:ne...@x2...>
|