home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 43 / af043a.adf / hdinstall < prev    next >
Text File  |  1992-12-16  |  1KB  |  37 lines

  1. .k drive
  2. if "<drive>" eq ""
  3.   echo "Type EXECUTE HDINSTALL [drive]    e.g.   EXECUTE HDINSTALL dh0:"
  4.   quit
  5. endif
  6. copy prodata-program-disc:c/ask ram:
  7. endif
  8. echo "Prodata v1 - Installing on Hard Disc <drive>"
  9. if exists <drive>prodata
  10.   ram:ask "Prodata is already installed. Do you want to update files (y/n)? "
  11.   if not warn
  12.     quit
  13.   endif
  14.   echo "Updating Prodata files ..."
  15.   copy >nil: prodata-program-disc:#? <drive>prodata
  16.   copy >nil: prodata-program-disc:drawericon/prodata.info <drive>
  17.   echo "All Prodata files updated."
  18.   delete ram:ask
  19.   cd <drive>prodata
  20. else
  21.   makedir <drive>prodata
  22.   echo "Copying Prodata files to <drive>prodata"
  23.   copy >nil: prodata-program-disc:#? <drive>prodata
  24.   copy >nil: prodata-program-disc:drawericon/prodata.info <drive>
  25.   if warn
  26.     echo "Error occurred during installation."
  27.     delete ram:ask
  28.     quit
  29.   else
  30.     echo "All Prodata files and icons copied onto hard disc."
  31.   endif
  32.   ram:ask "Press a key to continue with configuration ..."
  33.   delete ram:ask
  34.   cd <drive>prodata
  35.   pdconfig
  36. endif
  37.