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

InstallShield 6.2


1 reply to this topic

Sundarraj

Sundarraj
  • Members
  • 1 posts

Posted 08 December 2001 - 23:57

How to find an application running while installing a software ? For example How to find an running of .exe
while installing a product. This .exe running I'm seeing
in Task manager of Windows NT. But need to detect
in the InstallShield code.  

Can any one help me on this /


Toby

Toby
  • Members
  • 6 posts

Posted 09 December 2001 - 12:02

Try this one...

if Is ( FILE_LOCKED , "file_path" ) then
nHwnd = FindWindow ("program", "");
SendMessage (nHwnd, WM_SYSCOMMAND, SC_CLOSE, 0);

The above code detects running file and terminates it.
I hope that helped :)

Regards,
Toby