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.

Preventing Reinstall when Application is in use..Addon Quest

1 reply to this topic

Swami Gurumoorthy

Swami Gurumoorthy
  • Members
  • 2 posts

Posted 31 October 2001 - 03:12

I use IS Pro 5.51

Perotin had suggested a way to check if the application is in use before reinstallation using Is( FILE_LOCKED, svApp ). Now if there are so many such exe's for that application and all of them are in Application Dir\Bin (thankfully) how will I check for one or more locked files in that directory? I thought adding an if condition for each and every file in that directory is not an elegant way. So I need to make it generic on any exe which is in the bin directory.

Thanks in advance.


  • Full Members
  • 407 posts

Posted 31 October 2001 - 08:17

Could this help you?
Code Sample
nReturn = FindAllFiles( szDir, "*.exe", svResult, RESET );
while( nReturn = 0 )
   if( Is( FILE_LOCKED, svResult )) then
      MessageBox( "Application in use, please close. Setup is cancelled.", WARNING );
   nReturn = FindAllFiles( szDir, "*.exe", svResult, CONTINUE );