home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / print / plot-handler.lha / Plot-Handler / Install < prev    next >
Encoding:
Text File  |  1995-01-15  |  1.8 KB  |  59 lines

  1. ; check for 2.0
  2.  
  3. version >nil: exec.library 37
  4. if warn
  5.   echo "Plot-Handler needs Kickstart 2.0 or higher to run!"
  6. else
  7.   echo "Installation script for Plot-Handler V1.0*n*n"
  8.   ask "Do you want Plot-Handler to be mounted always (y/n) ?"
  9.   if warn
  10.     echo "*nCopying Plot-Handler to L: ... " NOLINE
  11.     copy L/Plot-Handler L: COM
  12.     echo "Done."
  13.     if exists DEVS:DOSDrivers/
  14.       echo "Copying PLT to DEVS:DOSDrivers ... " NOLINE
  15.       copy FROM Devs/PLT Devs/PLT.info TO DEVS:DOSDrivers/ QUIET COM
  16.       echo "Done."
  17.     else
  18.       echo "Adding PLT to DEVS:MountList ... " NOLINE
  19.       if exists DEVS:MountList
  20.         join DEVS:MountList Devs/PLT-MountList AS RAM:MountList
  21.         copy RAM:MountList DEVS:MountList
  22.         delete >NIL: RAM:MountList
  23.       else
  24.         copy Devs/PLT-MountList DEVS:MountList
  25.       endif
  26.       if exists S:User-Startup
  27.         join S:User-Startup S/PLT-Startup AS RAM:User-Startup
  28.         copy RAM:User-Startup S:User-Startup
  29.         delete >NIL: RAM:User-Startup
  30.       else
  31.         copy S/PLT-Startup S:User-Startup
  32.       endif
  33.       echo "Done."
  34.     endif
  35.     echo "*nInstallation successful!"
  36.     echo "PLT: will be available after next reset!"
  37.   else
  38.     echo "*nCopying Plot-Handler to L: ... " NOLINE
  39.     copy L/Plot-Handler L: COM
  40.     echo "Done."
  41.     if exists SYS:Storage/DOSDrivers/
  42.       echo "Copying PLT to SYS:Storage/DOSDrivers ... " NOLINE
  43.       copy FROM Devs/PLT Devs/PLT.info TO SYS:Storage/DOSDrivers/ QUIET COM
  44.       echo "Done."
  45.     else
  46.       echo "Adding PLT to DEVS:MountList ... " NOLINE
  47.       if exists DEVS:MountList
  48.         join DEVS:MountList Devs/PLT-MountList AS RAM:MountList
  49.         copy RAM:MountList DEVS:MountList
  50.         delete >NIL: RAM:MountList
  51.       else
  52.         copy Devs/PLT-MountList DEVS:MountList
  53.       endif
  54.       echo "Done."
  55.     endif
  56.     echo "*nInstallation successful!"
  57.   endif
  58. endif
  59.