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

Uninstall with application running.


1 reply to this topic

Adam

Adam
  • Members
  • 107 posts

Posted 16 December 2002 - 23:59

I need help.

I have a application that i need to make sure is closed when i do an uninstall.  Basicaly, nothing happens is this app is running. Is tehre a way i can see if a process is active and then abort setup with a msg box saying close the application prior to uninstall?

My app is called ppdmm.exe

Its located in TARGETDR + "\\ppdmm\\ppdmm.exe"


I use an OnEvent setup, and am a newb.
Please let me know the simplest way to accomplish this.

I have spent the last 5 hours trying to get FINDWINDOW and the below scripts to function in my script.


I have looked at most of the options on this site and have found a few good ones, i just cant get them to work.

Here are the ones i cannot seem to get to work.




Code Sample
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


&


http://www.installsi.../en/isp_ext.htm
down on the shutting down applications.

Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

Posted 24 December 2002 - 01:10

Were you trying to use "List and Shut Down Running Applications" files?  What about them did not work?
We use something similar here and have not had much trouble at all.