Hi,
we use the pskill.exe tool from sysinternals, packed into the setup as a
binary. That works on all kind of windows machines.
Another problem though, if you kill the process, that displays the tray-icon,
the tray-icon will stay where it is until the mouse is moved over it. But
that's a common windows problem.
Our custom action looks like this:
<Custom Action='StopUserExe' Before='RemoveFiles'>
Installed
</Custom>
<CustomAction Id='StopUserExe' BinaryKey='PSKILL' ExeCommand='-t User.exe'
Impersonate='yes' Return='asyncNoWait' />
<Binary Id='PSKILL' SourceFile='pskill.exe'>
Regards,
Oliver
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of V K Gangwar
Sent: Samstag, 1. Dezember 2007 11:47
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Killing a Process !! MSI Installer....
Hi All,
I developed a MSI installer using VS2005 and WiX3.0.
After successful installation a .exe file executes and an icon is appeared on
system tray. While I uninstall Files in Use dialog doesn't catch that running
exe.
I made a custom action through which I am invoking command line taskkill.exe
command and killing running task. This was working fine with WinXP. But not
running on Win2000 because Win2000 doesn't have taskkill.exe.
My Installer is common for WinXP, 2000 and Vista.
Please give some suggestion how I can manage this problem.
How CloseApps custom action can be used. I am seeing code in
\wix\src\wixca\CloseApps.cpp but how I can build this dll.
Thanks
VK
Regards,
Veerendra Gangwar
M +91 94 486 88537
________________________________
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
how.<http://us.rd.yahoo.com/evt=51732/*http:/overview.mail.yahoo.com/>
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users