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

Warning user that App is running.


1 reply to this topic

SilentCry

SilentCry
  • Members
  • 43 posts

Posted 20 March 2002 - 16:03

Question of the day..

Is there a way in ISP to know if your APP is running, so that if the user tries to install or uninstall it will give them a warning to close down the App first?

I tried with the Findwindow function, but it doesn't work quite like I want.  

with ISP is there a way to check which processes are running?

SC

Dean Thackery

Dean Thackery
  • Members
  • 9 posts

Posted 20 March 2002 - 17:31

I use the following code to check to see if the executable file is locked, which would imply the program is running:

CheckRunning:
if Is (FILE_LOCKED, svExe) then
   nResult=AskYesNo (svExe + " is currently running.  Please shut it down before continuing.\n" +
   " Click Yes to continue, No to abort installation." , YES );
   
   if nResult = NO then
       abort;
   endif;              
     // loop back to check again to make sure they have shut it down
   goto CheckRunning;
endif;


Hope this helps!

Dean