home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / reqchang.run / ReqChange / Install.script < prev    next >
Encoding:
Text File  |  1992-09-01  |  3.5 KB  |  134 lines

  1. FailAt 20
  2.  
  3. Echo "*nReqChange, Upd & reqtools.library installation script*n"
  4. Version >NIL: exec.library 37
  5.  
  6. If WARN
  7.     Echo "You don't have AmigaDOS Release 2 (V37) or higher in ROM."
  8.     Echo "Therefore this install script will be somewhat primitive."
  9.     Echo "It will install ReqChange, SignalRC, Upd and a 1.3"
  10.     Echo "version of reqtools.library*n"
  11.     Ask  "Copy ReqChange to C:?"
  12.  
  13.     If WARN
  14.         Copy ReqChange C: QUIET
  15.         Echo "ReqChange copied to your C: directory"
  16.     EndIf
  17.  
  18.     Echo ""
  19.  
  20.     Ask  "Copy SignalRC to C:?"
  21.  
  22.     If WARN
  23.         Copy Extra/SignalRC C: QUIET
  24.         Echo "SignalRC copied to your C: directory"
  25.     EndIf
  26.  
  27.     Echo ""
  28.  
  29.     Ask  "Copy Upd to C:?"
  30.  
  31.     If WARN
  32.         Copy Upd/Upd C: QUIET
  33.         Echo "Upd copied to your C: directory"
  34.     EndIf
  35.  
  36.     Echo ""
  37.  
  38.     Version >NIL: LIBS:reqtools.library
  39.     If NOT ERROR
  40.         Echo "Version of reqtools.library already installed:"
  41.         Version LIBS:reqtools.library
  42.         Echo ""
  43.     EndIf
  44.  
  45.     Ask  "Copy reqtools.library V38.810 to LIBS:?"
  46.  
  47.     If WARN
  48.         Copy libs13/reqtools.library LIBS: QUIET
  49.         Echo "reqtools.library copied to your LIBS: directory"
  50.     EndIf
  51.  
  52.     Echo "*nInstallation complete."
  53.     Echo "*nEnd of installation script."
  54.     Wait 5
  55.     EndCLI >NIL:
  56. EndIf
  57.  
  58. Echo "This script will install ReqChange, Upd, GetFile, ReqAsk,"
  59. Echo "SignalRC and reqtools.library for you. You may select if"
  60. Echo "and where to install the files.*n"
  61.  
  62. ReqAsk "Should I install ReqChange?" TITLE "Installation Request"
  63.  
  64. If $ReqAskResult EQ 1
  65.     GetFile SYS:WBStartup TITLE "Please select destination" NOFILES
  66.  
  67.     If NOT WARN
  68.         Copy ReqChange TO $GetFileResult QUIET
  69.         Copy ReqChange.info TO $GetFileResult QUIET
  70.         Echo "*nReqChange + icon copied to $GetFileResult"
  71.     EndIf
  72. EndIf
  73.  
  74. ReqAsk "Should I install SignalRC?" TITLE "Installation Request"
  75.  
  76. If $ReqAskResult EQ 1
  77.     GetFile C: TITLE "Please select destination" NOFILES
  78.  
  79.     If NOT WARN
  80.         Copy Extra/SignalRC TO $GetFileResult QUIET
  81.         Copy Extra/SignalRC.info TO $GetFileResult QUIET
  82.         Echo "*nSignalRC + icon copied to $GetFileResult"
  83.     EndIf
  84. EndIf
  85.  
  86. ReqAsk "Should I install Upd*nby Jonas Petersson?" TITLE "Installation Request"
  87.  
  88. If $ReqAskResult EQ 1
  89.     GetFile C: TITLE "Please select destination" NOFILES
  90.  
  91.     If NOT WARN
  92.         Copy Upd/Upd TO $GetFileResult QUIET
  93.         Copy Upd/Upd.info TO $GetFileResult QUIET
  94.         Echo "*nUpd + icon copied to $GetFileResult"
  95.     EndIf
  96. EndIf
  97.  
  98. Version >NIL: LIBS:reqtools.library
  99. If NOT ERROR
  100.     Echo "Version of reqtools.library already installed:"
  101.     Version LIBS:reqtools.library
  102.     Echo ""
  103. EndIf
  104.  
  105. ReqAsk "Install OS 2.0 version or OS 1.3 version of reqtools.library V38.810?*nThe 1.3 version works on both OS,*nwhile the 2.0 version only works on OS 2.0.*nThe file will be placed in LIBS:" TITLE "Installation Request" GADFMT "2.0|1.3|Don't install"
  106.  
  107. If $ReqAskResult EQ 1
  108.     Copy Libs20/reqtools.library LIBS:
  109.     Echo "reqtools.library for 2.0 copied to your LIBS: directory"
  110.     Avail >NIL: FLUSH
  111. EndIf
  112.  
  113. If $ReqAskResult EQ 2
  114.     Copy Libs13/reqtools.library LIBS:
  115.     Echo "reqtools.library for 1.3 copied to your LIBS: directory"
  116.     Avail >NIL: FLUSH
  117. EndIf
  118.  
  119. ReqAsk "Should I install ReqAsk and GetFile?*n(These programs brings up the requesters*nyou have been using all the time.*nThey don't need ReqTools to work.*nBut they do need OS 2.04.)" TITLE "Installation Request"
  120.  
  121. If $ReqAskResult EQ 1
  122.     GetFile C: TITLE "Please select destination" NOFILES
  123.  
  124.     If NOT WARN
  125.         Copy ReqAsk $GetFileResult
  126.         Copy GetFile $GetFileResult
  127.         Echo "*nReqAsk and GetFile copied to $GetFileResult"
  128.     EndIf
  129. EndIf
  130.  
  131. Echo "*nInstallation complete.*n"
  132. Echo "Use the close gadget to get rid of the window"
  133. Echo "*nEnd of installation script!"
  134.