home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 73 / af073sub.adf / HANDYDMS / Handy.lha / handydms / HandyDMS.install < prev    next >
Text File  |  1995-03-21  |  2KB  |  87 lines

  1. failat 21
  2.  
  3. echo "*e[1;1H*e[J"
  4. echo "*e[0;1mHandyDMS install-script V1.1"
  5. echo "*n*e[0mThis script will install HandyDMS in a path of your wish."
  6.  
  7. Version >NIL: exec.library 37
  8. if warn
  9.  echo "*nYou need at least Kickstart 2.0!"
  10.  skip abort
  11. endif
  12.  
  13. echo noline "*nReally install HandyDMS? "
  14.  
  15. set input "n"
  16. set >NIL: input ?
  17.  
  18. if $input eq "yes"
  19.  skip start
  20. endif
  21.  
  22. if $input eq "y"
  23.  skip start
  24. endif
  25.  
  26. if $input eq "ja"
  27.  skip start
  28. endif
  29.  
  30. if $input eq "j"
  31.  skip start
  32. endif
  33.  
  34. skip abort
  35.  
  36. Lab start
  37. echo "*nEnter the path where you want HandyDMS to be installed."
  38. echo "The path must end with '/' or ':' !*n"
  39.  
  40. lab Enterpath
  41. echo noline "Enter path: "
  42. set Path "[blank]"
  43. set >NIL: Path ?
  44. if not exists $Path
  45.   echo "*n*e[3mInvalid path! '$Path' does not exist!*e[0m*n"
  46.   skip back Enterpath
  47. endif
  48.  
  49. echo NOLINE "*nInstalling HandyDMS-mainfiles to '$Path'..."
  50. Copy HandyDMS to $Path >NIL:
  51.  
  52. if warn 
  53.  echo "*n*e[32mAn error occured! Please check diskspace!*e[0m"
  54.  skip abort
  55. endif
  56.  
  57. Copy HandyDMS.info to $Path >NIL:
  58.  
  59. if warn 
  60.  echo "*n*e[32mAn error occured! Please check diskspace!*e[0m"
  61.  skip abort
  62. else
  63.  echo "done!*n"
  64. endif
  65.  
  66. Version >NIL: reqtools.library 38
  67. if warn
  68.  echo NOLINE "*nInstalling reqtools.library V38 to 'LIBS:'..."
  69.  copy libs ALL to LIBS: >NIL:
  70.  if warn
  71.   echo "*n*e[32mAn error occured! Please check diskspace!*e[0m"
  72.   skip abort
  73.  endif
  74.  echo "done!*n"
  75. else
  76.  echo "Reqtools.library V38 is already installed!"
  77. endif
  78.  
  79. echo "*n*e[32mInstallation complete!*e[0m*n"
  80. Wait 3
  81. quit
  82.  
  83. Lab abort
  84. echo "*nInstallation aborted...*n"
  85. Wait 3
  86. quit
  87.