home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 97 / af097b.adf / Witness.lzx / WITNESSInstall < prev   
Text File  |  1988-01-10  |  1KB  |  58 lines

  1. echo "*EcThis installation script will copy all WITNESS files"
  2. echo "onto your hard disk, in the directory of your choice.*N"
  3.  
  4. ask "Do you wish to install WITNESS? (Type Y to install):"
  5.  
  6. if not warn 
  7.     echo "Installation cancelled.*N"
  8.     skip quit
  9. endif
  10.  
  11. echo "*NType the name of the disk and directory where you wish to"
  12. echo "install WITNESS. For example: *dh0:Games/Arcade*."
  13. echo "A directory called WITNESS will be created."
  14. echo "Enter Path: " NOLINE
  15.  
  16. failat 21
  17.  
  18. assign > NIL: witdir: ?
  19. assign > NIL: witdir: exists
  20.  
  21. if warn
  22.     echo "*NSorry that is not a valid drive, please check the name"
  23.     echo "and run the install again."
  24.     skip quit
  25. endif
  26.  
  27. cd witdir:
  28. echo "*NCreating directory..."
  29. makedir > NIL: WITNESS
  30.  
  31. if warn
  32.     echo "That directory already exists."
  33.     ask "Do you wish to install to this directory? (Y to install):"
  34.     if not warn 
  35.         echo "Installation cancelled.*N"
  36.         skip quit
  37.     endif    
  38. endif
  39.  
  40. copy >NIL: WITNESS:s/witness.info witdir:
  41. assign witdir: witdir:WITNESS
  42. cd witdir:
  43. echo "*NInstalling WITNESS to " NOLINE
  44. cd
  45.  
  46. copy >NIL: WITNESS:data/#? all witdir:data
  47. copy >NIL: WITNESS:W.I.T.N.E.S.S. witdir:
  48. copy >NIL: WITNESS:W.I.T.N.E.S.S..info witdir:
  49. copy >NIL: WITNESS:witness witdir:
  50. copy >NIL: WITNESS:witness.doc witdir:
  51.  
  52. echo "*NWITNESS installation finished."
  53.  
  54. lab quit
  55. assign witdir:
  56. ask " (return to exit)"
  57. endcli
  58.