Hi everyone, 
 
I am trying to make the "Finish" button of an exit diallog close any Interner
Explorer window(s) that may be open.
The following code works, but it display a command prompt window:
<CustomAction Id="SetQtExecDeferred_TaskKillIExplore" Property="KillBrowser"
Execute="immediate" Value="&quot;C:\Windows\System32\TaskKill.exe&quot; /F /IM
IExplore.exe" />
<CustomAction Id="KillBrowser" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return="ignore" Impersonate="no"/> 
 
I would prefer to use a Quiet Execution Custom Action, and indeed the
following code works when scheduling execution before "InstallFinalize"
<CustomAction Id="SetQtExecDeferred_TaskKillIExplore"
Property="QtExecDeferred_TaskKillIExplore" Execute="immediate"
Value="&quot;[SystemFolder]TaskKill.exe&quot; /F /IM IExplore.exe" />
<CustomAction Id="QtExecDeferred_TaskKillIExplore" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred" Return="ignore" Impersonate="no"/>
 
But I cannot get this to work if called by a "Do Action" of the Finish button
in the exit dialog. 
I've tried many variants of syntax, even some that seem incorrect (in case my
understanding of what is logical was wrong).
The result I get is either a couple different types of error message, or a
false success as reflected in the log extracts below.
 
So I've started wondering whether a Quiet Execution Command Action can in fact
be used after installation is complete i.e. by the Finish button of the exit
dialog?
Any advice would be greatly appreciated, this is the one issue that makes my
installer look a but kludgy and I would love to avoid it (as would the couple
thousand people who will used, yikes)
 
Many thanks, 
 
SG
 
(Log extracts)
 
Action 16:59:32: ExitDialog_Install. Dialog created
MSI (c) (54:04) [16:59:39:015]: Doing action: KillBrowser
Action 16:59:39: KillBrowser. 
Action start 16:59:39: KillBrowser.
Action ended 16:59:39: ExitDialog_Install. Return value 1.
Action ended 16:59:39: KillBrowser. Return value 0.
Action ended 16:59:39: INSTALL. Return value 1.
 
Action 17:07:16: ExitDialog_Install. Dialog created
MSI (c) (B8:B0) [17:08:00:718]: Doing action: KillBrowser
Action 17:08:00: KillBrowser. 
Action start 17:08:00: KillBrowser.
MSI (c) (B8:B0) [17:08:00:718]: Creating MSIHANDLE (1) of type 790542 for
thread 1712
MSI (c) (B8:B4) [17:08:00:718]: Invoking remote custom action. DLL:
C:\Tmp\MSIFE9.tmp, Entrypoint: CAQuietExec
MSI (c) (B8:78) [17:08:00:734]: Cloaking enabled.
MSI (c) (B8:78) [17:08:00:734]: Attempting to enable all disabled priveleges
before calling Install on Server
MSI (c) (B8:78) [17:08:00:734]: Connected to service for CA interface.
MSI (c) (B8!7C) [17:08:00:859]: Creating MSIHANDLE (2) of type 790541 for
thread 3452
MSI (c) (B8!7C) [17:08:00:859]: Creating MSIHANDLE (3) of type 790531 for
thread 3452
MSI (c) (B8!7C) [17:08:00:859]: Closing MSIHANDLE (3) of type 790531 for
thread 3452
MSI (c) (B8!7C) [17:08:00:859]: Creating MSIHANDLE (4) of type 790531 for
thread 3452
MSI (c) (B8!7C) [17:08:00:859]: Closing MSIHANDLE (4) of type 790531 for
thread 3452
MSI (c) (B8!7C) [17:08:00:859]: Closing MSIHANDLE (2) of type 790541 for
thread 3452
MSI (c) (B8:B4) [17:08:00:859]: Closing MSIHANDLE (1) of type 790542 for
thread 1712
Action ended 17:08:00: KillBrowser. Return value 1.
Action ended 17:08:00: ExitDialog_Install. Return value 1.
 
Action 15:22:56: ExitDialog_Install. Dialog created
MSI (c) (90:A0) [15:23:03:281]: Doing action: KillBrowser
Action 15:23:03: KillBrowser. 
Action start 15:23:03: KillBrowser.
MSI (c) (90:A0) [15:23:03:296]: Creating MSIHANDLE (1) of type 790542 for
thread 2720
MSI (c) (90:60) [15:23:03:296]: Invoking remote custom action. DLL:
C:\Tmp\MSID52.tmp, Entrypoint: WixShellExec
MSI (c) (90:5C) [15:23:03:296]: Cloaking enabled.
MSI (c) (90:5C) [15:23:03:296]: Attempting to enable all disabled priveleges
before calling Install on Server
MSI (c) (90:5C) [15:23:03:296]: Connected to service for CA interface.
MSI (c) (90!3C) [15:23:03:453]: Creating MSIHANDLE (2) of type 790541 for
thread 3900
MSI (c) (90!3C) [15:23:03:453]: Creating MSIHANDLE (3) of type 790531 for
thread 3900
MSI (c) (90!3C) [15:23:03:453]: Closing MSIHANDLE (3) of type 790531 for
thread 3900
MSI (c) (90!3C) [15:23:03:453]: Creating MSIHANDLE (4) of type 790531 for
thread 3900
MSI (c) (90!3C) [15:23:03:453]: Closing MSIHANDLE (4) of type 790531 for
thread 3900
MSI (c) (90!3C) [15:23:03:453]: Closing MSIHANDLE (2) of type 790541 for
thread 3900
MSI (c) (90:60) [15:23:03:453]: Closing MSIHANDLE (1) of type 790542 for
thread 2720
Action ended 15:23:03: KillBrowser. Return value 1.
Action ended 15:23:03: ExitDialog_Install. Return value 1.
 
Action 15:41:13: ExitDialog_Install. Dialog created
MSI (c) (C4:0C) [15:41:20:359]: Doing action: KillBrowser
Action 15:41:20: KillBrowser. 
Action start 15:41:20: KillBrowser.
Action ended 15:41:20: KillBrowser. Return value 1631.    (not finding
TaskKill.exe I suspect, but using explicit path avoids this error but no
ultimate success.
Action ended 15:41:20: ExitDialog_Install. Return value 1.
 
(Some of the command/syntax variants I've tried are:)
<CustomAction Id="KillBrowser"
ExeCommand="&quot;[SystemFolder]TaskKill.exe&quot; /F /IM IExplore.exe"
Return="asyncNoWait"/>
<CustomAction Id="KillBrowser" Property="C:\Windows\System32\TaskKill.exe"
ExeCommand="/F /IM IExplore.exe" Return="asyncNoWait"/> 
<CustomAction Id="KillBrowser" FileKey="[SystemFolder]TaskKill.exe"
ExeCommand="&quot; /F /IM IExplore.exe&quot;" Return="asyncNoWait"/>
<CustomAction Id="KillBrowser" BinaryKey="WixCA" DllEntry="CAQuietExec"
Execute="immediate" Return='ignore' Impersonate="no" />
<CustomAction Id='KillBrowser' Property="C:\Windows\System32\TaskKill.exe"
ExeCommand=" /F /IM IExplore.exe" Return= 'asyncNoWait' Impersonate="yes" /> 
<CustomAction Id="KillBrowser" BinaryKey="WixCA" DllEntry="WixShellExec"
Execute="immediate" Return='asyncNoWait' Impersonate="yes" /> 
<CustomAction Id="KillBrowser" BinaryKey="WixCA" DllEntry="WixShellExec"
Execute="immediate" Return='asyncNoWait' Impersonate="yes" /> 
<CustomAction Id="KillBrowser" BinaryKey="WixCA" DllEntry="WixShellExec"
Execute="immediate" Return='ignore' Impersonate="no" /> 
 
 
 
SG

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to