home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 1 / Mecomp-CD.iso / amiga / tools / system / sysinspector / install next >
Text File  |  1997-05-08  |  4KB  |  170 lines

  1. ; SI Installer Script
  2. ; $Ver: v1.02 (15-Apr-97)
  3. ; Written by Phil Vedovatti
  4.  
  5. (set @default-dest "Sys:Utilities")
  6.  
  7. (set #bad-kick
  8.    (cat "\n\nSorry! You must have Workbench 3.0 or"
  9.         "\nhigher to to use this package."
  10.         "\n\nAborting Installation!"))
  11.  
  12.  
  13. (set #no-classact
  14.    (cat "\nHmmm!  You don't seem to have the ClassAct 2.0"
  15.         "\nGUI system installed.  You can obtain the"
  16.         "\nlatest ClassAct classes via ftp on the"
  17.         "\nInternet at: \n\n ftp.warped.com/pub/amiga/classact/"
  18.         "\n\nDo you wish to continue installation?"))
  19.  
  20. (set #Help-ContInstall
  21.    (cat "\nThis package requires ClassAct 2.0, which does not"
  22.         "\nappear to be installed on your system.  Select"
  23.         "\n'Continue' to intall the program anyway, or select"
  24.         "\n'Abort' to end the installation."))
  25.  
  26. (set #hello-message
  27.    (cat "Welcome to the SysInspector Installation Utility."
  28.         "\n\nThis product is © 1997 by Eric Sauvageau."
  29.         "\n\nPlease support Amiga shareware authors with your contribution."))
  30.  
  31. (set #SI-dest
  32.    (cat "Where would you like SysInspector program to be"
  33.         "\ninstalled?  A directory will NOT be created during"
  34.         "\nthe installation."))
  35.  
  36. (set #DC-dest
  37.    (cat "Where would you like SysInspector documentation to be"
  38.         "\ninstalled?  The default directory is Help:.  You may"
  39.         "\nselect a different destination if you wish."))
  40.  
  41. (set #BL-dest
  42.    (cat "Where would you like the boards.library to be"
  43.         "\ninstalled?  The default directory is LIBS:, which"
  44.         "\nshould be appropriate for most users."))
  45.  
  46. (set #RQ-dest
  47.    (cat "Where would you like the reqtools.library to be"
  48.         "\ninstalled?  The default directory is LIBS:, which"
  49.         "\nshould be appropriate for most users."))
  50.  
  51. (set #Install-Complete
  52.    (cat "\n\nPlease read the documentation carefully to get"
  53.         "\nthe most out of SysInspector.  SysInspector is a"
  54.         "\npowerful and useful tool, but be sure you know"
  55.         "\nhow to use it to prevent loss of data."))
  56.  
  57. (set #wrongversion
  58. (cat "You have an old version of the program 'Installer' "
  59.      "on your Amiga!\n\nThe installation procedure needs at least Installer 42.9.\n\n"
  60.      "Please check your configuration!"
  61. ))
  62.  
  63. (welcome #hello-message)
  64.  
  65.  
  66. ; ------------------------------
  67. ; Check Installer & Kickstart Version
  68. ; ------------------------------
  69.  
  70. (if (< @installer-version 2752521)
  71.   (
  72.     (message #wrongversion)
  73.     (exit (quiet))
  74.   )
  75. )
  76.  
  77. (if (< (getversion) (* 39 65536))
  78.         (abort #bad-kick)
  79. )
  80.  
  81. ; ------------------------------
  82. ; Check if ClassAct 2.0 installed
  83. ; ------------------------------
  84.  
  85. (if (< (getversion "libs:window.class") (* 42 65536))
  86.    (set ContInstall
  87.              (askbool
  88.                 (prompt #no-classact)
  89.                 (help #Help-ContInstall)
  90.                 (default 0)
  91.                 (choices "Continue Installation" "Abort Installation")
  92.              )
  93.    )
  94. )
  95.  
  96. (if (= ContInstall 1)
  97.         (abort "\nInstallation Aborted!")
  98. )
  99.  
  100. ; ------------------------------
  101. ; Get destinations
  102. ; ------------------------------
  103.  
  104. (set destdir-SI
  105.    (askdir
  106.          (prompt #SI-dest)
  107.          (help @askdir-help)
  108.          (default "Sys:Utilities")
  109.    )
  110. )
  111.  
  112. (set destdir-DC
  113.    (askdir
  114.          (prompt #DC-dest)
  115.          (help @askdir-help)
  116.          (default "Help:")
  117.    )
  118. )
  119.  
  120. (set destdir-BL
  121.    (askdir
  122.          (prompt #BL-dest)
  123.          (help @askdir-help)
  124.          (default "Libs:")
  125.    )
  126. )
  127.  
  128. (set destdir-RQ
  129.    (askdir
  130.          (prompt #RQ-dest)
  131.          (help @askdir-help)
  132.          (default "Libs:")
  133.    )
  134. )
  135.  
  136. ; ------------------------------
  137. ; Installation
  138. ; ------------------------------
  139.  
  140. (copyfiles
  141.    (source "SysInspector")
  142.    (dest destdir-SI)
  143.    (infos)
  144. )
  145.  
  146. (copyfiles
  147.    (source "SysInspector.guide")
  148.    (dest destdir-DC)
  149.    (infos)
  150. )
  151.  
  152.  
  153. (copylib
  154.    (source "libs/boards.library")
  155.    (dest destdir-BL)
  156. )
  157.  
  158. (copylib
  159.    (source "libs/reqtools.library")
  160.    (dest destdir-RQ)
  161. )
  162.  
  163. ; ------------------------------
  164. ; Finishing up
  165. ; ------------------------------
  166.  
  167. ;(run "C:run >NIL: sys:utilities/multiview CHANGES")
  168. (message #Install-Complete)
  169. (exit)
  170.