Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

kill a process


5 replies to this topic

aranda

aranda
  • Members
  • 2 posts

Posted 24 May 2005 - 20:57

Hello... I would like to know how can I stop or kill an .exe before that uninstall my application or just in the moment to uninstal the application?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 May 2005 - 09:00

Take a look at sample "List and Shut Down Running Applications" at http://www.installsi.../en/isp_ext.htm

stdcplusplus

stdcplusplus
  • Members
  • 14 posts

Posted 07 November 2005 - 06:23

I use findwindow() in the OnUninstall() to find the App , then use sendMessage to close the App, but it seems that if you click the setup.exe to uninstall the App,it don't work.
it don't execute the Oninstall(). So where should i place the findwindow() funcation ?

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 07 November 2005 - 07:35

If you want an overkill you might try pskill.exe from system internals: http://www.sysintern...ies/PsKill.html
Regards
-Stein Åsmul

stdcplusplus

stdcplusplus
  • Members
  • 14 posts

Posted 08 November 2005 - 03:05

how to use this tool in the installscript?

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 08 November 2005 - 11:51

I have never used it, but I think you should be able to use a "run EXE file" custom action with the appropriate command line specified.
Regards
-Stein Åsmul