home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 July / IMM0795.ISO / share / os2 / ssaver14 / install.cmd < prev    next >
OS/2 REXX Batch file  |  1994-07-16  |  2KB  |  47 lines

  1. /*    install.cmd - REXX script for ScreenSaver installation
  2.     (C) 1993-94 Siegfried Hanisch
  3. */
  4.  
  5. call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
  6. call SysLoadFuncs
  7.  
  8. say "ScreenSaver 1.4 installation."
  9.  
  10. rc = SysFileTree("SSaver.EXE", fspec, "FO")
  11. if rc=0 then
  12. do
  13.     filename=filespec("Name", fspec.1)
  14.     filepath=filespec("Path", fspec.1)
  15.     filedrive=filespec("Drive", fspec.1)
  16.     if SysCreateObject("WPProgram", "ScreenSaver",,
  17.       "<WP_DESKTOP>", "EXENAME="filedrive||filepath||filename,
  18.       ";STARTUPDIR="||filedrive||filepath, "replace") then
  19.     do
  20.         say "ScreenSaver program object created."
  21.         say "If you want ScreenSaver to be automatically started at boot"
  22.         say "time, move the program object to the startup folder."
  23.         say "-----"
  24.         say "Make sure the latest version of the emx-DLLs (as supplied with ScreenSaver)"
  25.         say "are somewhere in your LIBPATH"
  26.         say "-----"
  27.         say "Please read the online help topic on 'low priority' if"
  28.         say "saver animation is not smooth enough."
  29.         say "-----"
  30.         say "Please note that the 'Colors' module will most probably"
  31.         say "work only on (S)VGA video cards in 16 and 256 color mode."
  32.         say "-----"
  33.         say "Since version 1.2 it is possible to use Deskpic modules (see online help)."
  34.         say "-----"
  35.         say "Since version 1.3 there is password protection (see online help)."
  36.         say "-----"
  37.         say "Please note that from version 1.3 on ScreenSaver is Shareware not Freeware."
  38.         say "See online help for how to register."
  39.     end
  40.     else
  41.         say "ERROR: program object could not be created."
  42. end
  43. else
  44.     say "ERROR: ScreenSaver program file SSaver.EXE not found."
  45.     exit
  46. end
  47.