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

How to determine if application is running?


3 replies to this topic

michalvsoft

michalvsoft
  • Members
  • 5 posts

Posted 14 June 2006 - 09:48

Hi,

How to determine in InstallScript if specyfic application is running. I've only found FindWindow() function, but the application I am trying to find if is running does't have applicationn class name set (it is different after every restart), and window caption is changing, depending on some conditions.
Is there any other way to find if the application is running?
I have to find that durning uninstall, as when uninstalling with the app running there are a few files left after uninstall is finished.

....I can think of one solution but I still don't know how to achieve it:
Is there a way to list running processes in installscript just like in task manager?

Thanks in advance.

Edited by michalvsoft, 14 June 2006 - 09:56.


antyagi

antyagi
  • Full Members
  • 121 posts

Posted 14 June 2006 - 10:10

You can try "Is" with "FILE_LOCKED" parameter.
  ankur tyagi

michalvsoft

michalvsoft
  • Members
  • 5 posts

Posted 14 June 2006 - 10:33

Yes, but locked file does not nesesery mean the application is running, right?


felltier-a

felltier-a
  • Awaiting Authorisation
  • 85 posts

Posted 14 June 2006 - 12:13

Hi,

there´s a sample-code on this site "List and Shut Down Running Applications"

installscript samples-->external programs and Shell