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

Preventing Reinstalling When Application Is in U


1 reply to this topic

Swami Gurumoorthy

Swami Gurumoorthy
  • Members
  • 2 posts

Posted 29 October 2001 - 22:11

I use IS Pro 5.51

I want to prevent the user from ReInstalling the application when the
application.exe is in use. I tried to use DeInstallSetReference but it
helps only if the user is trying to Uninstall as opposed to
Reinstalling. So when the user tries to reinstall when the exe is in use
it gives an ugly error message and quits setup.

How will I do this?

Thanks
Swami




Perotin

Perotin
  • Full Members
  • 407 posts

Posted 30 October 2001 - 08:53

Just check at the beginning of setup.rul for the exe (here as svApp) being locked/in use:
Code Sample
if( Is( FILE_LOCKED, svApp )) then
  MessageBox( ... );
  abort;
endif;