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
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.
Warning user that App is running.
Started by
SilentCry
, Mar 20 2002 16:03
1 reply to this topic
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
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