home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / frlnch.zip / source.frl / frldll.c < prev    next >
C/C++ Source or Header  |  1995-03-10  |  2KB  |  55 lines

  1. /*
  2.    FreeLaunch InstallationDll header (c) Thomas Blummer 1995
  3.    $Id: frldll.c 1.4 1995/03/10 19:48:41 thomas Exp $
  4.  
  5.    NOTE : you must include an InstallationDLL statement into your configuration
  6.    file to use this interface.
  7.    NOTE : this entry is called every time from the first (PM) thread, so be gentle,
  8.         or start an other thread and disable frame until you finished.
  9.    Compile this file as a DLL. Module definition file is supplied in frldll.def
  10.    eg: icc /Gm /Ge- frldll.c /B/BATCH frldll.def
  11. */
  12.  
  13. #include "frldll.h"
  14.  
  15. #define INCL_BASE
  16. #include <os2.h>
  17.  
  18. #include <string.h>
  19.  
  20. BOOL _System frlentry (HAB hab, HWND frame, ULONG state, const char *dir, ULONG param)
  21. {
  22.         switch ( state )
  23.         {
  24.                 case FLST_INSTALLDONE :
  25.                         return TRUE;
  26.                 case FLST_REMOVESTART :
  27.             /*
  28.             ** The following lines are only meaningful
  29.             ** for the deinstallation of FreeLaunch
  30.             ** Replace or delete the following lines
  31.             ** depending on your needs
  32.             */
  33.             {
  34.                 char path [1024];
  35.                 strcpy (path, dir);
  36.                 strcat (path, "\\frldll.dll");
  37.                 DosDelete (path);
  38.                 strcpy (path, dir);
  39.                 strcat (path, "\\frldll.obj");
  40.                 DosDelete (path);
  41.                 strcpy (path, dir);
  42.                 strcat (path, "\\install.rc");
  43.                 DosDelete (path);
  44.                 strcpy (path, dir);
  45.                 strcat (path, "\\install.res");
  46.                 DosDelete (path);
  47.                 strcpy (path, dir);
  48.                 strcat (path, "\\frl.res");
  49.                 DosDelete (path);
  50.             }
  51.                         return TRUE;
  52.         }
  53.         return TRUE;
  54. }
  55.